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 中增加请求超时?
基础教程推荐
- 我应该在后面的代码中直接使用 Linq To SQL 还是使 2022-01-01
- WPF 模态进度窗口 2022-01-01
- 如果有人提交恶意软件Nuget包怎么办? 2022-01-01
- 当值可以是对象或空数组时反序列化 JSON 2022-01-01
- .NET SerialPort DataReceived 事件未触发 2022-01-01
- C# 从 List<List<int>> 中删除重 2022-01-01
- Moq It.Is<>不匹配 2022-01-01
- 如何使用 .Net 检查 Active Directory 服务器是否已启动并正在运行? 2022-01-01
- Azure Functions:CosmosDBTrigger 未在 Visual Studio 中触发 2022-01-01
- 禁止输入少量字符,例如'<'、'&a 2022-01-01
