How to setup elmah for MVC3 .NET 4.0
Tired of setting up your configuration to load elmah? You think you already configured everything even compiling the source code to build on .net 4.0 but still failed? Experience a routing error, or this persistent line: elmah Could not load file or assembly 'System.Data.SQLite' or one of its dependencies. An attempt was made to load a program with an incorrect format. (because SQLite was build on x86). You could change a setting in IIS App Pool to load x86 dll but that's not really a solution. To solve this issue, simply use NuGet Package Manager and install the elmah plugin :-). Steps: 1.) Open Tools->Library Package Manager->Manage NuGet Packages. 2.) Search for elmah, there will be several match, just choose the first one with the most number of downloads.
How to setup elmah for MVC3 .NET 4.0 Reviewed by Edward Legaspi on Wednesday, November 16, 2011 Rating: