方案1: 在程序的web.config 中system.web 节点 里面插入 <httpRuntime maxRequestLength="999999999" maxQueryStringLength="2097151" /> 代码。再次运行,失败
方案2:对IIS 中的applicationHost.config 配置文件进行配置。再次运行,失败
方案3:在程序的web.config 中configuration 节点 里面插入
<system.webServer>
<security>
<requestFiltering>
<requestLimits maxAllowedContentLength="2147483647" maxQueryString="2147483647"/>
</requestFiltering>
</security>
</system.webServer>
就是 方案1 + 方案3 的结合体,运行通过。
备注:本文转自https://www.cnblogs.com/da6wei6/p/6599675.html,如有侵权,请联系博主删除。