对于所有的项目都要应用此配置的话,在C:\Windows\System32\inetsrv\config里找到applicationHost.config文件,在,<system.webServer>路径下添加如下配置:添加如下配置:
- <security>
- <requestFiltering>
- <requestLimits maxQueryString="4080" />
- </requestFiltering>
- </security>
web.config中加入
<httpRuntime maxRequestPathLength="360" maxQueryStringLength="1024" />