尝试使用 asp.net mvc 上传大约 500 MB 的大文件。
我的 web.config 如下所示,但我仍然在生产服务器上收到错误,但它在我的本地 IIS(不是 IIS Express)上运行:
<httpRuntime targetFramework="4.5" maxRequestLength="1048576" />
....
<system.webServer>
<security>
<requestFiltering>
<requestLimits maxAllowedContentLength="1048576000" />
</requestFiltering>
</security>
</system.webServer>