如何更改 Windows Azure 网站上的脚本超时?
最佳答案
鉴于您没有引用特定语言,我假设它是 ASP.NET。无论哪种方式,您都必须更改 web.config
文件并将 httpRuntime
的 executionTimeout
属性设置为所需的值(以秒为单位):
<httpRuntime executionTimeout="300" />
如果您不是使用 ASP.NET 进行编码,只需使用 FTP 登录到您的网站,导航到网站的根文件夹,打开 web.config 文件并编辑它。它一定看起来像这样(只是有点臃肿):
<?xml version="1.0" encoding="utf-8"?>
<!--
For more information on how to configure your ASP.NET application, please visit
http://go.microsoft.com/fwlink/?LinkId=169433
-->
<configuration>
<system.web>
<httpRuntime executionTimeout="300" />
</system.web>
<system.webServer>
<validation validateIntegratedModeConfiguration="false" />
</system.webServer>
</configuration>
如果没有名为 web.config
的文件,只需使用上述内容创建一个 XML 文件,将其命名为 web.config
并将其放置在您网站的根文件夹中。这应该对你有用。
关于azure - 更改 Windows Azure 网站上的脚本超时,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18823024/