Last post Oct 08, 2011 01:00 AM by .Net Follower
Oct 07, 2011 04:44 AM|hcaccount|LINK
I have a HTTP Hanlder working fine, but some request are not saved in my app log because of http timeout.
I dont want a bigger timeout. How can I catch that http timeout exception and handle it properly?
Note: I have a main try-catch block, but the HTTP Timeout exception is not catched in it!
In the event log I have an entry(Category=Web Event, Source=ASP.NET 2.0...)
Exception type: HttpException
Exception message: Request timed out.
Tanks in advance,
Oct 08, 2011 01:00 AM|.Net Follower|LINK
Did you try to use Application_Error() in global.asax?
protected void Application_Error(Object sender, EventArgs e)
// At this point we have information about the error
HttpContext ctx = HttpContext.Current;
Exception exception = ctx.Server.GetLastError ();
// log the error