PRB: "Request Timed Out" Error Occurs When You Use the DataAdapter Method in an ASP.NET Application (825739)
The information in this article applies to:
- Microsoft ASP.NET (included with the .NET Framework) 1.0
- Microsoft ASP.NET (included with the .NET Framework 1.1)
SYMPTOMSWhen you use the DataAdapter.Fill method, or you run a query in
an ASP.NET Web application that takes more than 90 seconds to process, you may receive
the following error message: HttpException (0x80004005):
Request timed out. Note This error occurs only when you run the Web application in release
mode, and the value of the Debug attribute in the Web.Config file is set to
false. CAUSEBy 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. WORKAROUNDTo 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- Open the Web.config file in Notepad.
- Add the httpRuntime element in the system.web section as follows:
<configuration>
<system.web>
<httpRuntime executionTimeout="90" maxRequestLength="4096" useFullyQualifiedRedirectUrl="false"
minFreeThreads="8" minLocalRequestFreeThreads="4" appRequestQueueLimit="100" />
</system.web>
</configuration>
- Modify the value of the executionTimeout attribute to avoid time-out errors.
- Save the Web.config file.
Method 2: Set the ExecutionTimeout Attribute Value in the Machine.config File- Open the Machine.config file in Notepad. The
Machine.config file is located in the
%SystemRoot%\Microsoft.NET\Framework\%VersionNumber%\CONFIG\
directory.
- In the Machine.config file, locate the httpRuntime element. The Web.config file is located in the Web Application directory
<httpRuntime executionTimeout="90" maxRequestLength="4096" useFullyQualifiedRedirectUrl="false"
minFreeThreads="8" minLocalRequestFreeThreads="4" appRequestQueueLimit="100" /> - Modify the value of the executionTimeout attribute to avoid time-out errors.
- Save the Machine.config file.
STATUS This
behavior is by design.REFERENCESFor more information, visit the following Microsoft Developer Network (MSDN) Web
sites:
Modification Type: | Minor | Last Reviewed: | 9/10/2003 |
---|
Keywords: | kbweb kbSqlClient kbDataAdapter kbHttpRuntime kbConfig kbThread kbprb KB825739 kbAudDeveloper |
---|
|