我遇到了最大请求长度超过错误的问题,当我尝试在我的.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不起作用,或者我做错了什么,因为我还是新手。
发布于 2016-02-13 11:41:20
我解决了它,只需将这个maxRequestLength="214748364"添加到web.config中:
<system.web>
<httpRuntime targetFramework="4.5.2" maxRequestLength="214748364" />
</system.web>
https://stackoverflow.com/questions/35375347
复制相似问题