【问题标题】:How to extend default Azure AppService timeout?如何延长默认 Azure 应用服务超时?
【发布时间】:2018-09-27 17:00:09
【问题描述】:

我正在尝试通过托管在 Azure 上的 Web 应用程序上传视频文件。

对于大于大约 1.8Gb 的文件,我收到超时错误 500。

我做了一些更改以延长此超时但没有成功:

  1. 激活了“永远在线”功能

  2. 在 Azure 面板的应用设置中将 SCM_COMMAND_IDLE_TIMEOUT 设置为 2400 段

  3. 将 WEBSITE_SCM_IDLE_TIMEOUT_IN_MINUTES 设置为 60 分钟 在 Azure 面板中的应用设置上

  4. 尝试在 powershell 上运行此命令:

    Get-AzureVM –ServiceName “MyService” –Name “MyVM” | Get-AzureEndpoint
    

我想将 4 GB 的文件上传到云端。

【问题讨论】:

    标签: azure powershell asp.net-mvc-4 web-config timeout


    【解决方案1】:

    可能是:

    WEBJOBS_IDLE_TIMEOUT = 2400 ?

    在你的 .config 中

    <system.web>
       <httpRuntime executionTimeout="YourTime" maxRequestLength="YourSizeRequest"/>
    </system.web>
    

    -

    <system.webServer>
       <security>
          <requestFiltering>
             <requestLimits maxAllowedContentLength="<valueInBytes>"/>
          </requestFiltering>
       </security>
    </system.webServer>
    

    【讨论】:

    • 在 Azure 配置中添加了 WEBJOBS_IDLE_TIMEOUT = 3000,但在上传 1.9 GB 文件时仍然收到相同的错误 500。 web.config 中的 maxAllowedContentLength 设置为 4294967295,位小于 4GB
    猜你喜欢
    • 1970-01-01
    • 2015-09-20
    • 2022-01-12
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-02-24
    相关资源
    最近更新 更多