首页 > 解决方案 > 如何延长默认 Azure AppService 超时?

问题描述

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

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

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

  1. 激活“始终开启”功能

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

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

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

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

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

标签: azurepowershellasp.net-mvc-4web-configtimeout

解决方案


也许 :

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>

推荐阅读