Thomas Ardal

Thomas Ardal

Meet Thomas, the founder and developer behind elmah.io. Thomas blogs about everything technical from C# and ASP.NET Core to machine learning.

Denmark
272 posts
Updating NuGet packages from command-line - deep dive

I set out to find a better way to update NuGet packages across multiple projects, solutions, and git repositories. I have used a combination of command line and Visual Studio until now but wanted to reduce the time spent on the rather boring task of updating packages. This post is ...

Async processing of long-running tasks in ASP.NET Core

Sometimes, invoking an API endpoint needs to trigger a long-running task. Examples of this could be invoking an external and slow API or sending an email, which you don't want the caller of your API to wait for. There are multiple ways of implementing this using a message broker, a ...

Debugging System.FormatException when launching ASP.NET Core

I talked with a user the other day, experiencing a System.FormatException exception when trying to launch ASP.NET Core. While trying to help to figure out what went wrong, I realized that there can be a lot of different causes for this error in ASP.NET Core. This post ...

Stream large content from ASP.NET Core to avoid OutOfMemoryException

I had to implement an endpoint in ASP.NET Core, fetching a large amount of data and returning it to the client. Just to end up in a System.OutOfMemoryException on the server. With just a few changed code lines and the built in support for streaming content in ASP. ...

Embedding source code on errors logged to elmah.io

We're excited to launch a new feature that we have been running on our services for the past couple of months: Embedded source code! You probably tried looking at a stack trace, locating the details about the failing file and line number, and then open your source code in your ...

HTTP Error 500.30 - ASP.NET Core app failed to start help

Problems during the startup of an ASP.NET Core project on your production environment can be extremely hard to debug. In this article, I'll guide you through where to look and possible solutions to common startup problems. So, you spend days developing the next Facebook or Twitter in ASP.NET ...

How to authorize and post Slack messages from ASP.NET Core 💬

All of your favorite tools (elmah.io anyone?) integrate with online messaging tools like Slack. It's essential for moderne companies to be notified on Slack when new errors are logged, when a build fails, when customers are acquired, etc. In this post, I'll show you how to create an ASP. ...

Upload and resize an image natively with ASP.NET Core 🖼️

I have blogged about upload and resizing with ASP.NET Core already: Upload and resize an image with ASP.NET Core and ImageSharp. With this post, I want to show a simple approach for uploading and resizing images with ASP.NET Core that doesn't require any external libraries. The solution ...

Show a name and profile photo with .NET and Gravatar 🤵

Most systems dealing with users have some way of letting people input their name and upload a profile photo. Other systems only know user's email addresses and don't have the luxury of showing additional information. Don't have a profile photo on your users or do you want a fallback photo ...