Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

jump from application_error when status=404

Status
Not open for further replies.

cjdrake

Programmer
Jul 11, 2003
30
0
0
GB
Code:
<error statusCode="404" redirect="404Error.aspx" />

When I have included the above line in my webconfig file, control gets half way through application_error in global.asax then jumps out to redirect to 404Error.aspx

I actually want application_error to complete before the redirection and thought the order of processing for errors was:

1. Page_Error
2. Application_Error
3. web.config

The application_error sub completes fine for all other errors, it just seems to redirect too early for 404s for some reason?! Why?!

 
can you post the code for you application_error in global.asax?

--------------------------
"two wrongs don't make a right, but three lefts do" - the unknown sage
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top