我遇到最大请求长度超出错误的问题,当我尝试在我的 .net mvc 应用程序中上传超过 3-4 张照片时,我得到:
Server Error in '/' Application.
我找到了 IIS 7 的解决方案:
<system.webServer>
<security>
<requestFiltering>
<requestLimits maxAllowedContentLength="1073741824" />
</requestFiltering>
</security>
</system.webServer>
我尝试将它添加到我的 web.config,但它可能不适用于 IIS 10 或者我做错了什么,因为我还是新手。
最佳答案
我解决了,只需将这个 maxRequestLength="214748364" 添加到 web.config 中即可:
<system.web>
<httpRuntime targetFramework="4.5.2" maxRequestLength="214748364" />
</system.web>
关于c# - IIS 10.0 最大请求长度 .NET MVC,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35375347/