How to increase request timeout in IIS?(如何在 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 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 中增加请求超时?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:如何在 IIS 中增加请求超时?


基础教程推荐
- 如何动态获取文本框中datagridview列的总和 2022-01-01
- 是否可以在 asp classic 和 asp.net 之间共享会话状态 2022-01-01
- 经典 Asp 中的 ResolveUrl/Url.Content 等效项 2022-01-01
- 从 VS 2017 .NET Core 项目的发布目录中排除文件 2022-01-01
- 在 VS2010 中的 Post Build 事件中将 bin 文件复制到物 2022-01-01
- 首先创建代码,多对多,关联表中的附加字段 2022-01-01
- 全局 ASAX - 获取服务器名称 2022-01-01
- 将事件 TextChanged 分配给表单中的所有文本框 2022-01-01
- JSON.NET 中基于属性的类型解析 2022-01-01
- 错误“此流不支持搜索操作"在 C# 中 2022-01-01