azure - 如何延长默认 Azure AppService 超时?
问题描述
我正在尝试通过托管在 Azure 上的 Web 应用程序上传视频文件。
对于大于大约 1.8Gb 的文件,我会收到超时错误 500。
我做了一些更改以延长此超时但没有成功:
激活“始终开启”功能
在 Azure 面板的应用程序设置中将 SCM_COMMAND_IDLE_TIMEOUT 设置为 2400 seg
在 Azure 面板的应用程序设置中将 WEBSITE_SCM_IDLE_TIMEOUT_IN_MINUTES 设置为 60 分钟
尝试在 powershell 上运行此命令:
Get-AzureVM –ServiceName “MyService” –Name “MyVM” | Get-AzureEndpoint
我想将 4 GB 的文件上传到云端。
解决方案
也许 :
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>
推荐阅读
- c# - ASP.NET 根据 ViewState 中的值加载动态控件
- jquery - 在哪里传递锚标签
- tcl - 从 EDK 1.05 移植到 EDK2 后,TCL 出现八进制数问题
- java - Amazon S3:使用 Java 开发工具包更改存储桶策略
- ag-grid - 禁用最后一行的排序
- tableau-api - 基于计算的固定 LOD 表达式
- java - Maven Shade 重定位类调用非重定位类
- c# - 更新后设置不同?无法更改语言版本
- multilingual - Shopware 多语言类别
- amazon-redshift - 如何在带有 Redshift 的 SQL Workbench/J 中使用保存点?