请求筛选模块被配置为拒绝包含的查询字符过长的请求,解决方案!

今天遇到WebUploader上传控件,提交fromData参数过长报错,并附解决方案!

希望能帮助到大家!  -   ADOU

方案1:
在web.config中system.web下配置
1 <httpRuntime targetFramework="4.5" maxRequestLength="999999999" maxQueryStringLength="2097151" />

system.webServer下配置

1     <security>
2       <requestFiltering>
3         <requestLimits maxAllowedContentLength="30000000" maxQueryString="2097151"/>
4       </requestFiltering>
5     </security>

两项同时配置

方案2:对 IIS 中的 applicationHost.config 配置文件进行配置。
具体配置参考:
原文地址:https://www.cnblogs.com/a-dou/p/6810860.html