问题描述
如何在 IIS 7.0 中增加请求超时?在 IIS 6.0 的 ASP 配置设置中的应用程序选项卡下也是如此.我在 IIS 7.0 中找不到 asp.net 配置部分
How to increase request timeout in IIS 7.0? The same is done under application tab in ASP configuration settngs in IIS 6.0. I am not able to find the asp.net configuration section in IIS 7.0
推荐答案
将此添加到您的 Web Config
Add this to your Web Config
<system.web>
<httpRuntime executionTimeout="180" />
</system.web>
https://msdn.microsoft.com/en-us/库/e1f13641(v=vs.85).aspx
可选的 TimeSpan 属性.
Optional TimeSpan attribute.
指定允许请求的最大秒数在被 ASP.NET 自动关闭之前执行.
Specifies the maximum number of seconds that a request is allowed to execute before being automatically shut down by ASP.NET.
此超时仅适用于编译中的调试属性元素为假.帮助防止关闭应用程序在调试时,不要将此超时设置为很大的值.
This time-out applies only if the debug attribute in the compilation element is False. To help to prevent shutting down the application while you are debugging, do not set this time-out to a large value.
默认值为00:01:50"(110 秒).
The default is "00:01:50" (110 seconds).
这篇关于如何在 IIS 中增加请求超时?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!