Will a Response.Redirect exception go to global.asax?

Posted by mgmedick on Stack Overflow See other posts from Stack Overflow or by mgmedick
Published on 2013-06-24T20:44:24Z Indexed on 2013/06/24 22:22 UTC
Read the original article Hit count: 233

I'm aware that when you call Response.Redirect it fires a ThreadAbortException. A co-worker has demonstrated calling response.redirect and then it goes to the global.asax.

For the life of me I cannot get the ThreadAbortException to go to the global.asax, its like it is being suppressed naturally in the system.

The reason I'm asking this is we believe the response.redirect is the cause of some automated error emails, but I'm not convinced this is the case especially if I can't even get it to debug into the global.asax.

Any Ideas why I can't get the Response.Redirect to fire the global error handler?

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about response.redirect