我正在尝试通过Azure上托管的Web应用程序上传视频文件。
对于大于约1.8Gb的文件,我收到超时错误500。
我进行了一些更改以延长此超时,但未成功:
激活了“始终在线”功能
在Azure面板的“应用程序设置”中将SCM_COMMAND_IDLE_TIMEOUT设置为2400 seg
将WEBSITE_SCM_IDLE_TIMEOUT_IN_MINUTES设置为60分钟 在Azure面板的“应用程序设置”中
试图在powershell上运行此命令:
Get-AzureVM –ServiceName “MyService” –Name “MyVM” | Get-AzureEndpoint
我想将4 GB的文件上传到云中。
答案 0 :(得分:0)
可能是:
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>