forum

Home / DeveloperSection / Forums / What is ELMAH and how to Work ELMAH in Asp.Net MVC?

What is ELMAH and how to Work ELMAH in Asp.Net MVC?

Royce Roy213907-Oct-2014

I am trying to use ELMAH to log errors in my ASP.NET MVC application, however, when I use the [HandleError] attribute on my controllers ELMAH doesn't log any errors when they occur.

As I am guessing its because ELMAH only logs unhandled errors and the [HandleError] attribute is handling the error so thus no need to log it.

How do I modify or how would I go about modifying the attribute so ELMAH can know that there was an error and log it.
 
I'm asking... ELMAH gets bypassed when using the handle error attribute meaning it won't see that there was an error because it was handled already by the attribute... What I am asking is there a way to make ELMAH see the error and log it even though the attribute handled it...I searched around and don't see any methods to call to force it to log the error.

Updated on 07-Oct-2014

Can you answer this question?


Answer

1 Answers

Liked By