开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜