|
FAQ
"System.Web.HttpException: Request timed out"
|
|
|
|
I got error "System.Web.HttpException: Request timed out"
SUMMARY
By default, the value of the executionTimeout attribute
is set to 90 seconds in the Machine.config file. This error occurs when the
processing time exceeds 90 seconds.
SOLUTION
To work around this problem, increase the time-out value that is set for the executionTimeout
attribute in the configuration file.
The executionTimeout attribute exists under httpRequest
in the Machine.config file. You can change these settings either in the
Web.Config file or in the Machine.config file. The default value for the
time-out is 90 seconds. The executionTimeout attribute indicates the
maximum number of seconds a request is permitted to run before being shut down
by the ASP.NET Web application.
Method 1: Set the ExecutionTimeout Attribute Value in the
Web.config File
| 1. |
Open the Web.config file in Notepad.
|
| 2. |
Add the httpRuntime element in the system.web section
as follows:
|
| 3. |
Modify the value of the executionTimeout attribute to avoid time-out
errors.
|
| 4. |
Save the Web.config file.
|
Method 2: Set the ExecutionTimeout Attribute Value in the Machine.config File
| 1. |
Open the Machine.config file in Notepad. The Machine.config file is located in
the %SystemRoot%\Microsoft.NET\Framework\%VersionNumber%\CONFIG\ directory. |
| 2. |
In the Machine.config file, locate the httpRuntime element.
The Web.config file is located in the Web Application directory
|
| 3. |
Modify the value of the executionTimeout attribute to avoid
time-out errors.
|
| 4. |
Save the Machine.config file.
|
|