开发者

HttpException: Why doesn't Application_Error in my global.asax catch the "Request Timed Out" exception

开发者 https://www.devze.com 2022-12-10 18:38 出处:网络
When a page times out(Request Timed Out) in my application, the Application_Error sub in my Global.asax is not being fired.I have custom code in place to redirect an user a custom error page when appl

When a page times out(Request Timed Out) in my application, the Application_Error sub in my Global.asax is not being fired. I have custom code in place to redirect an user a custom error page when application errors occur. Why is 开发者_StackOverflow社区the HttpException not being captured?


EDIT: Sorry I misunderstood.

If you are having a timeout request ASP.NET kills the thread because the runtime will throw a ThreadAbortException which will not be caught be global.asax Application_Error

0

精彩评论

暂无评论...
验证码 换一张
取 消