Trapping Unhandled Errors with Global.asax
Posted on 2011-02-16
I'm using Global.asax to trap any unhandled errors in my aspx program. When running on my development machine, unhandled errors are correctly trapped by Global.asax -> Application_Error.
When I publish the web site (as precompiled) and upload it to my web site, unhandled errors are no longer trapped by Global.asax. Instead, they are displayed on the web page with the heading "Server Error in '/' Application".
My web site is hosted by Network Solutions on a Windows server using shared hosting.
Any suggestions on what I might need to do to have Global.asax process my errors rather than whatever debugger might be running under the hosting package?
Thank you in advance for your help!