azure - 更改 Windows Azure 网站上的脚本超时

标签 azure azure-storage

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

最佳答案

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

<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/

相关文章:

c# - CloudTableClient客户端超时

Azure BLOB 存储 - 定价和速度 "Within the data center"

Azure 逻辑应用程序 - 从队列消息的原始输入中删除双引号

在 Windows Azure 中使用 cURL 进行 php 调用

azure - Microsoft.Web.WebJobs.Publish 在部署包中生成重复的程序集

java - 将对象放入 Azure 存储时出现身份验证错误

c# - container.ListBlobs 给出了 CloudBlobDirectory 的列表 我期待的是 CloudBlockBlobs 的列表?

node.js - Azure Function v2 文件系统写入不再有效并抛出 4058 无此类文件或目录错误

azure - 如何在 Azure Function 中动态绑定(bind)服务总线 BrokeredMessage

azure - 当前订阅中不存在该存储帐户