Connecting Tech Pros Worldwide Help | Site Map

Application_error not being triggered on server

Newbie
 
Join Date: Nov 2008
Posts: 14
#1: Jul 8 '09
when i test my application locally Application_Error works but when I upload my dll to the test or production servers it doesn't.

Help would be appreciated.
Plater's Avatar
Moderator
 
Join Date: Apr 2007
Location: New England
Posts: 7,153
#2: Jul 9 '09

re: Application_error not being triggered on server


Can you describe what happens that you know it is not working?
I have an idea what might be going on, but it depends on your situation.

I would guess that for starters you will want to change the line in your web.config to:
<customErrors mode="Off"/>

So that you can see what errors are occuring on your remote server. If your application_error() function is generating an exception, I think it will get confusing
Newbie
 
Join Date: Nov 2008
Posts: 14
#3: Jul 9 '09

re: Application_error not being triggered on server


I had moved global.asax.cs file to the servers instead of the global.asax file.
Plater's Avatar
Moderator
 
Join Date: Apr 2007
Location: New England
Posts: 7,153
#4: Jul 9 '09

re: Application_error not being triggered on server


Ahh. You do not use the Publish feature of the web project to upload the webpage?
Newbie
 
Join Date: Nov 2008
Posts: 14
#5: Jul 9 '09

re: Application_error not being triggered on server


for some reason (which i forget) we don't
Reply