Blog Archives

Global exception logging in ASP.NET MVC 4


This post is an aggregation of various posts found on the web which aim to address the issue of global logging of exceptions as well as the display of nice “error” pages in ASP.NET MVC 4. As developers, we do

Posted in .NET, ALT.NET, ASP.NET MVC, NLog

Castle Windsor NLog Integration dll versioning problem


Today I was setting up a new project that was using Castle Windsor’s NLog integration facility. However, when I tried running my ASP.NET MVC project I got the following error: Could not load file or assembly ‘NLog, Version=2.0.0.0, Culture=neutral, PublicKeyToken=5120e14c03d0593c’

Posted in .NET, ALT.NET, Castle.Windsor, NLog, Troubleshooting

Castle Windsor NLog Integration


Motivation Castle Windsor comes with what it calls a “Logging Facility“. What the latter allows you to do is very quickly enable logging using a variety of ways but what is most interesting is the fact that the “Logging Facility”

Posted in .NET, ALT.NET, Castle.Windsor, IoC, NLog