Some of the tricky problems with live websites are
- Unhandled server side exceptions
- Environmental issues that can't be logged at application level
Diagnosis for these would require turning off the custom errors and limiting to local server. But, this doesn't do live monitoring of errors for you to look back the errors.
ELMAH helps monitor the websites for unhandled exceptions. The best part is that, it requires only few config changes to get plugged into your website and monitor for errors.
I have been using it on IIS for live site diagnosis, which is crucial for production sites. For my ASP.NET website, i did the following to plug in the ELMAH.
1) Download ELMAH online. Just google!
2) Add the following keys to the web config file under
<httpHandlers>
<add verb="POST,GET,HEAD" path="elmah.axd" type="Elmah.ErrorLogPageFactory, Elmah"/>
</httpHandlers>
<httpModules>
<add name="ErrorMail" type="Elmah.ErrorMailModule, Elmah"/>
<add name="ErrorLog" type="Elmah.ErrorLogModule, Elmah"/>
<add name="ErrorFilter" type="Elmah.ErrorFilterModule, Elmah"/>
</httpModules>
Dotnetslackers blog post
No comments:
Post a Comment