如何在IIS中增加请求超时? [英] How to increase request timeout in IIS?

查看:192
本文介绍了如何在IIS中增加请求超时?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在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配置

Add this to your Web Config

<system.web>
    <httpRuntime executionTimeout="180" />
</system.web>

https://msdn.microsoft.com/en-us/library/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.

仅当编译
元素中的debug属性为False时,此超时才适用。为了防止在调试时关闭应用程序
,请不要将此超时设置为较大的值。

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中增加请求超时?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆