I have two ASP.NET MVC web applications. One of them logs unhandled exceptions to the windows event log. The other doesn’t.
Is there a setting in IIS or the web.config to enable event log logging?
Apologies for the broad question, I’m really looking for avenues for investigation.
Turning CustomErrors on started stuff being added to error log.
Final solution was to add
to the
Section of the web.config. This enabled Elmah in IIS7.
Loose understanding – exceptions were being intercepted by elmah, which was mal-configured for the above reason, causing swallowing of errors. Turning custom errors on, seemed to bypass elmah and enable errors to push through to event log.