Thursday 28 January 2016

How to handle request timeout in web.config and page in Asp.net?

Request timed out.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Web.HttpException: Request timed out.



This question also covers
  • How to increase the time out for request/response ?
  • IIS Request Timeout on long ASP.NET operation.
  • Request Response Time out in Asp.net.
  • Page Timeout in ASP.NET

Solution:
Solve Request time out error from c# code and web.config configuration.
<system.web>
 <httpRuntime executionTimeout="180"/>
</system.web>



Know all about httpRuntime Element (ASP.NET Settings Schema)
https://msdn.microsoft.com/en-in/library/e1f13641(v=vs.85).aspx