So, I don’t know if anyone else is experiencing this but if I run an asp.net website with ELMAH installed through IIS 7.5 Express, ELMAH refuses to log or even read from the database. If I instead run the website through Cassini, all is well. Elmah works like a charm…
Is anyone else experiencing this issue?
Based on what you’ve described so far, the only explanation I can come up with is that ELMAH’s modules and handler may have been registered under
<system.web>only and which is why they are being used by the ASP.NET Development Server (Cassini). IIS Express, on the other hand, expects those modules and handler to be registered under<system.webServer>. Following is an extract from the sample web.config supplied with ELMAH 1.1: