Tell me more ×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

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

  1. 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 ?

  2. Other than windbg what is the option to get complete stack trace ?

share|improve this question

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.