asp.net 网站设置访问超时时长

 1.单个站点超时时间

Web.config 配置httpRuntime executionTimeout (单位秒)

设置为720秒

<system.web>
<httpRuntime maxRequestLength="102400" executionTimeout="720" />
</system.web>

IIS配置修改脚本超时时间

2.多个站点设置

如果服务器上有多个网站,希望统一设置一下超时时间,则需要设置 machine.config 文件中的 ExecutionTimeout 属性值。machine.config 文件位于

C:\Windows\Microsoft.NET\Framework\v4.0.30319\Config\ 目录中。

<httpRuntime executionTimeout="600" />

原文地址:https://www.cnblogs.com/songjuntao/p/15794201.html