I just started using Elmah with .NET 3.5 and ASP .NET MVC Version 1. I develop in Windows XP and the server is Windows Server 2003. I’ve searched all over the place and found no help so I’m presenting the case to the mailing list.
Everything works perfectly when I run things locally. The friendly error page comes up, ELMAH records all the exception details, and the error’s information shows up in the ELMAH Error Log.
However, when I copy the files to the server and go to the same crash-inducing page (division by zero exception), nothing is logged. I see the friendly error page but ELMAH tells me that nothing went wrong. In addition, the error gets sent to the Event Log.
I’ve attached a copy of the Web.config.
Any advice will be very much appreciated.
Sincerely,
Zian Choy
I see the friendly error page
Good catch. Sorry, I should have mentioned earlier that I am using ASP .NET MVC, which falls over to Error.aspx for error handling automatically.
However, I’ve put in the HandleErrorAttribute.vb class and Elmah still fails to catch the errors. I just tried with the Elmah test exception and it washed ashore in the application event log with nary a peep in the Elmah Error Log.
Sincerely,
Zian Choy
From:
el...@googlegroups.com [mailto:el...@googlegroups.com] On Behalf Of Atif Aziz
Sent: Sunday, August 30, 2009 3:01
PM
To: el...@googlegroups.com
Subject: [ELMAH] Re: Logging Works
Locally But Fails In Production
I see the friendly error page