We are getting httpexception due to request timeout in our application. We found the request url from the event log and from our custom logging system but there was no complete stack trace. I tried replicating this issue by adding Thread.Sleep(time)
code in MVC action method where time is greater than httpRuntime executionTimeout value. I am able to reproduce the issue.
I have exception handling block (catch) code in my handler which is the entry point to all request, but looks like when request times out it is not getting handle in my custom handler instead it falls to Application_Error
in Global.asax and i don't see what exactly caused the request timeout.
protected void Application_Error(Object theSender, EventArgs theEventArgs)
{
Exception aLastError = Server.GetLastError();
//Log the exception
}
I have following questions
I know the ASP.NET uses timer to invoke request cancellation process, is this the reason it is not getting caught in my custom handler and directly falls in Application_Error ?
Other than windbg what is the option to get complete stack trace ?