我正在尝试将我的 ASP.NET MVC Web 应用程序配置为允许上传最大 350MB 的文件。我在IIS7上。
我尝试了以下 Web.config 更改:
在system.web下添加以下内容
<httpRuntime maxRequestLength="2097151" requestLengthDiskThreshold="2097151" executionTimeout="270" />
我也试过这个system.webserver
<system.webServer>
<security>
<requestFiltering>
<requestLimits maxAllowedContentLength="367001600"/>
</requestFiltering>
</security>
</system.webServer>
对于这两种情况,我仍然在服务器日志中看到 HTTP 404 13 问题(文件太大),并且在浏览器中看到 404。
还有其他影响大文件上传的设置吗?