Search code examples
c#asp.netexceptionelmahhealth-monitoring

about Error Logging


Q:

While i was asking about an issue concerning the exception handling,i find many articles about how to deal with exceptions:

My question has three parts:

1- I read about ELMAH - Error Logging Modules And Handlers.

through two articles this and this.but it doesn't work with me,although the simplicity of its configuration .The yellow death screen still appear to me!.

Notes:

  • I try the code locally in development environment not in the production environment.

  • I'm so confused about /admin/elmah.axd, is it exist physically or not.

  • I use web application not a web site.and .net 3.5


2- Is the ELMAH the best choice or I should use Health Monitoring instead ?or can i use the both?


3- If i use ELMAH ,Is this enough , and i don't need to Error folder and custom errors anymore.?


Solution

  • My understanding of ELMAH is that it is a way to capture errors that your application may be missing, and allow you to review them later. So you still need custom error pages if you want your users to see something other than the yellow screen of death.

    The /admin/elmah.axd is a HttpHandler that does not have a physical file on disk, but instead gives you an administrative console to the errors that have been captured by ELMAH.

    I've not used Health Monitoring, so I cannot speak to it directly. I would say use whichever tool is easiest for you to use, and provides all the information you need. You could probably use both for a while and see if one is a better fit for your needs than another (though I don't know if they might step on one another or not).