views:

713

answers:

1

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?

+3  A: 

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

Nick Berardi
Yeah I have everything setup properly from what I can see and nothing else intercepting errors except like I said the [HandleError] Attribute..hmm think I just answered my own question.
dswatik
Yep thats what it was the [HandleError] attribute.
dswatik
You have to make your own HandleError to log the errors and handle the error routing
Nick Berardi
I didn't understand what is the solution for this, I have the same problem.
Paulo Manuel Santos