Increase ASP.NET File Upload Limits

Increase ASP.NET File Upload Limits

By default, ASP.NET and IIS protect us from large requests by putting hard limits on the transmitted size. IIS buffers files in our server’s memory before passing the byte array to ASP.NET. IIS’ default limit is 4MB and ASP.NET Core...

Continue Reading

Conditionally Apply LINQ Clauses

Conditionally Apply LINQ Clauses

The Language Integrated Query (LINQ) syntax is arguably one of the most powerful features of .NET. The ability to express queries over different data sources declaratively has made the .NET ecosystem more productive.

Continue Reading

Ping a Server Using C#

Ping a Server Using C#

The internet has fundamentally changed the majority of the applications we develop. Rarely is an application designed to exist in isolation. Instead, most apps rely on other networked apps to retrieve and store information. In this post, we’ll explore the...

Continue Reading

Write Unit Tests With F# and XUnit

Write Unit Tests With F# and XUnit

F# is the .NET language’s premier functional language. The syntax can be more concise than C#, which can arguably reduce overall errors. Regardless, we should still be writing tests as all good programmers should. In this post, we’ll be walking...

Continue Reading

Verify User File Uploads With .NET

Verify User File Uploads With .NET

In a previous post, I talked about handling file uploads with ASP.NET. This time around, we will see how we can protect the integrity of our file uploads by verifying the files are what the user says they are. As...

Continue Reading

Upload A File Using ASP.NET Core

Upload A File Using ASP.NET Core

Our users will inevitably want to share more than text-based information with us. They may wish to transmit images, videos, or third-party formats to our applications. Uploading files is a long-solved problem, and in this post, we’ll see how we...

Continue Reading

Writing .NET Database Integration Tests

Writing .NET Database Integration Tests

Database access is easy, but testing database access is hard whether we’re an experienced .NET developer or new to the party. We may also hear a lot of opinions in our ecosystem about testing around data access scenarios. Should I...

Continue Reading