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" />

 

posted @ 2022-01-12 18:30  宋军涛  阅读(223)  评论(0编辑  收藏  举报