【问题标题】:HttpException (0x80004005): Request timed out ASP.NetHttpException (0x80004005): 请求超时 ASP.Net
【发布时间】:2014-12-30 23:37:40
【问题描述】:

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

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

【问题讨论】:

    标签: c# asp.net web-config timeout


    【解决方案1】:

    放入网页配置文件

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

    【讨论】:

      【解决方案2】:
      Page.Server.ScriptTimeout = 90;
      

      或者

      use location element in config file

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

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

      【讨论】:

        猜你喜欢
        • 2017-04-30
        • 2020-05-31
        • 1970-01-01
        • 2014-06-24
        • 1970-01-01
        • 2012-01-30
        • 1970-01-01
        • 2011-02-26
        • 2018-08-06
        相关资源
        最近更新 更多