471,349 Members | 2,018 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,349 software developers and data experts.

Application_Error not firing

Hi there,

I have an odd situation. I have exception handling set up in my
Application_Error event handler in my global.asax. On my development box,
errors get caught by the event handler fine and redirect the user to an error
page manually...I know about the defaultRedirect but I'm just not using it.
Now when I try to recreate an error on my production box, I get the standard
asp.net error page with the big yellow bar accross the top telling me what
error just occured, but it doesn't hit the Application_Error event.

the web.config files are identical except for a different smtp server.

Should I be looking for some discrepencies between the two applications in
IIS? The production box application uses the DefaultAppPool. One other
difference is that on my development box my application is a virtual
directory whereas on the production box it is a sub directory set up as an
application.

I'm going back to bangin my head against the wall now. Thanks in advance.
--
Thanks,

John Scott.
Jul 21 '05 #1
1 3609
Was wondering if you had resolved this problem yet. My App appears not to be
running the Global.asax file on the production server and I have to hard code
the Database connection string within my code (for now), until I can find out
what the problem is. It works fine in development (as usual)...

"John Scott" wrote:
Hi there,

I have an odd situation. I have exception handling set up in my
Application_Error event handler in my global.asax. On my development box,
errors get caught by the event handler fine and redirect the user to an error
page manually...I know about the defaultRedirect but I'm just not using it.
Now when I try to recreate an error on my production box, I get the standard
asp.net error page with the big yellow bar accross the top telling me what
error just occured, but it doesn't hit the Application_Error event.

the web.config files are identical except for a different smtp server.

Should I be looking for some discrepencies between the two applications in
IIS? The production box application uses the DefaultAppPool. One other
difference is that on my development box my application is a virtual
directory whereas on the production box it is a sub directory set up as an
application.

I'm going back to bangin my head against the wall now. Thanks in advance.
--
Thanks,

John Scott.

Jul 21 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Greg Burns | last post: by
1 post views Thread by Ken Dopierala Jr. | last post: by
6 posts views Thread by Rippo | last post: by
1 post views Thread by John Scott | last post: by
19 posts views Thread by =?Utf-8?B?anZjb2FjaDIz?= | last post: by
reply views Thread by XIAOLAOHU | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.