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...

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.

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...

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...

.NET Core Tab Completion With Zsh

.NET Core Tab Completion With Zsh

I like to think I’m a loyal member of the CLI TILL I DIE team. I’m a macOS user, so naturally, I use a combination of iTerm2 and Oh-My-Zsh.

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...

Enjoy Local Development with Tye, Docker, and .NET

Enjoy Local Development with Tye, Docker, and .NET

As developers, we have an arsenal of technologies at our disposal. While using new technologies can make us more productive, setting them up can drain us of enthusiasm and stunt our creative momentum. Container technologies, especially Docker, have blunted a...

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...

Injecting Services Into ASP.NET Razor Views

Injecting Services Into ASP.NET Razor Views

Newer versions of ASP.NET have added exciting new functionality to Razor views. ASP.NET developers have never had it so good. In this short but simple post, we’ll walk through the steps necessary to inject a dependency into our views using...

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...