【发布时间】:2015-12-08 17:42:21
【问题描述】:
我想将一个大文件 (>4mb) 上传到我的 asp.net 5.0 应用程序,使用此配置在我的计算机上一切正常:
<configuration>
<system.webServer>
<security>
<requestFiltering>
<requestLimits maxAllowedContentLength="2147483648" maxQueryString="2000">
</requestLimits>
</requestFiltering>
</security>
<handlers>
<add name="httpPlatformHandler" path="*" verb="*" modules="httpPlatformHandler" resourceType="Unspecified" />
</handlers>
<httpPlatform processPath="%DNX_PATH%" arguments="%DNX_ARGS%" forwardWindowsAuthToken="false" startupTimeLimit="3600" />
</system.webServer>
<system.web>
<httpRuntime maxRequestLength="102400000" />
</system.web>
</configuration>
但在 azure(Web 角色)上,它仅适用于 4MB 以下的文件。
我认为 IIS 没问题,是 Kestrel 或 webListner 不想处理请求(我得到“指定的 CGI 应用程序遇到错误,服务器终止了进程。”),我不知道如果可以的话也可以配置。
【问题讨论】:
标签: azure asp.net-core azure-web-roles iis-8