System.Web.HttpException: Request timed out

asp.netWebforms

asp.net Problem Overview


Anyone have any idea how to go about resolving this error? This is happening on my live server, but when i run the project local pc or different server there is no error

> Server Error in '/' Application. 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. > > Source Error: > > An unhandled exception was generated during the execution of the > current web request. Information regarding the origin and location of > the exception can be identified using the exception stack trace below. > > Stack Trace: > > > [HttpException (0x80004005): Request timed out.]

asp.net Solutions


Solution 1 - asp.net

I don't know if there's any underlying problem, but to solve the timeout issue you can specify the request timeout (in seconds) in the web.config, like this:

<httpRuntime executionTimeout="300" />

For context, here's a complete web.config with just this setting:

<configuration>
    <system.web>
        <httpRuntime executionTimeout="300" />
    </system.web>
</configuration>

Solution 2 - asp.net

Open IIS -> click on the your siteName -> configuration Editor on the Section, scroll to system.web/httpRuntime. Increase the executionTimeout to the time you think it will take to execute your process...

You can also set it in the web.config like the answer above However in my case it work when I do it from IIS.

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestioncpoDesignView Question on Stackoverflow
Solution 1 - asp.netJames JohnsonView Answer on Stackoverflow
Solution 2 - asp.netDanView Answer on Stackoverflow