在Windows Azure网站上更改脚本超时

use*_*222 3 azure azure-storage

如何在Windows Azure网站上更改脚本超时?

ast*_*kov 5

鉴于您没有引用特定语言,我认为它是ASP.NET.无论哪种方式,您都必须更改web.config文件并将httpRuntime秒的executionTimeout属性设置为所需的值:

<httpRuntime  executionTimeout="300" />
Run Code Online (Sandbox Code Playgroud)

如果您不是在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>
Run Code Online (Sandbox Code Playgroud)

如果没有文件命名web.config只是创建一个包含上述内容的XML文件,web.config请将其命名并将其放在站点的根文件夹中.这应该为你做的伎俩.