Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

ASP .NET logs lots of warnings out-of-the-box. Does anyone know what will make ASP .NET log an error into the Windows Application event log?

I'm wondering if I can have a program that runs once a day or so to search for errors to make sure the server hasn't spontaneously blown up or fallen off the Internet for a moment. (think along the lines of those classic stories of "and the server mysteriously rebooted every 15 minutes at 4:09 AM").

share|improve this question

1 Answer 1

Whilst not to the Windows Event Logs - this is much better....

You can try ELMAH see this handy article from Scott Hanselman

http://www.hanselman.com/blog/ELMAHErrorLoggingModulesAndHandlersForASPNETAndMVCToo.aspx

share|improve this answer
    
I'm using ELMAH. I'm concerned about the crashes that will fall through, such as if the web.config or the permissions get messed up. –  Zian Choy Sep 3 '09 at 15:28

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.