HttpException(0x80004005):请求超时ASP.Net

本文关键字:超时 ASP Net 请求 0x80004005 HttpException | 更新日期: 2023-09-27 18:29:03

我只想问是否有办法增加特定页面的executionTimeOut?而不是整个应用程序?

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

HttpException(0x80004005):请求超时ASP.Net

Page.Server.ScriptTimeout = 90;

在配置文件中使用位置元素

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

请参阅仅在特定网页上增加请求超时和在每页级别的上增加ASP.Net超时

放入Web配置文件

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