简体   繁体   中英

HttpException (0x80004005): Request timed out ASP.Net

I just want to ask if theres a way to increase the executionTimeOut of a particular page? and not the whole application?

<configuration>    
  <system.web>
   <httpRuntime executionTimeout="90" maxRequestLength="4096" useFullyQualifiedRedirectUrl="false" 
minFreeThreads="8" minLocalRequestFreeThreads="4" appRequestQueueLimit="100" />
 </system.web>
</configuration>
Page.Server.ScriptTimeout = 90;

Or

use location element in config file

<configuration>
  <location path="UploadPage.aspx">
    <system.web>
      <httpRuntime executionTimeout="90" maxRequestLength="4096" />
    </system.web>
  </location>
</configuration>

See To Increase Request Timeout only on particular Web Page and Increase ASP.Net timeout on a per page level

put in Web Config File

 <location path="Report.aspx">
    <system.web>
      <httpRuntime executionTimeout="3600" maxRequestLength="10240"/>
    </system.web>
  </location>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM