Thomas Ardal

Thomas Ardal

Denmark
207 posts
log4net Tutorial - The Complete Guide for beginners and pros

log4net is still one of the most commonly used logging frameworks for .NET. While originally being a port of the log4j logging framework for Java, a lot has happened over the years, to make log4net a unique logging option for .NET/C# developers. This post is a collection of descriptions, ...

Debugging System.UnauthorizedAccessException (often followed by: Access to the path is denied)

It's time for another post in our series about Debugging common .NET exceptions. Today, I want to introduce you to System.UnauthorizedAccessException. The exception is typically caused by an IO error, but other issues like security restrictions are also known to utilize this error. Let's dig in! Handling the errorCatching ...

Web.config customErrors element with ASP.NET explained

The CustomErrors element inside an ASP.NET/MVC/Web API Web.config file, is something almost everyone uses somehow, however, many people’s experiences don’t work like they expect. During my years coding primarily ASP.NET MVC, I've used the custom errors element again and again. I have also ...

Issue Tracking 2.0

You may remember our quest to introduce light-weight issue tracking capabilities in elmah.io. If not, check out Mark errors as fixed, dashboards and more. Last week we silently launched the next chapter. Before I go into details about the new features, I want to put a few words on ...

Serilog vs log4net

Serilog and log4net are two very popular choices for logging messages from .NET applications. In this post, I'll show you how to configure and use each framework as well as list the advantages and disadvantages of each framework. I even dare to recommend you use one of the frameworks :) Let's ...

Debugging System.IO.FileNotFoundException - Cause and fix

This is the third part in the series named Debugging common .NET exceptions. Today, I want to help you track down and fix a very common and very well known exception, System.IO.FileNotFoundException. Admitted! In all instances this error is caused by trying to access a file that isn't ...

Country support

We're happy to announce that we just deployed the last step in our efforts to launch country support on elmah.io. Three months ago we started putting ISO 3166-1 alpha-2 country codes on all log messages. It was a poor-mans solution based on looking at HTTP headers, which only works ...

Serilog vs NLog

Serilog is often referred to as the new logging framework on the .NET platform, while NLog is considered "the old one" (together with log4net). With Serilog introduced back in 2013 and NLog in 2006, they both have a long history and a great community around them. I have worked with ...

elmah.io for Startups

Some of you may remember that we had a special program for Microsoft BizSpark members. Since Microsoft pulled the plug on that, we took some time reevaluating what to offer going forward. Today, we are ready to reveal our new program simply called elmah.io for Startups. As a member ...