Question

I am trying to use ELMAH for my error logging, and I've tried several others

Neither of which seem to log errors when the custom error feature in ASP.NET is enabled

I'm using the [HandleError] attribute in all my controllers, at first I thought that was the problem but it isn't just whenever I enable the custom error pages it doesn't log any errors even though half these error logging libraries say they are suppose to.

What am I doing wrong?

Was it helpful?

Solution

A couple things to check are that you have your HttpModule registered for ELMAH. You don't have any other process intercepting the errors.

OTHER TIPS

For some reason, removing the page level ErrorPage redirects resolved the problem for me. The redirect in the web.config (cUstomErrors tag) works but the page level redirects stop elmah from logging errors. Just something quick and easy to check for. Hope that helps some folk in my situation.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top