•Web 服务器上的请求筛选被配置为拒绝该请求,因为查询字符串过长。

来源:互联网 发布:淘宝佣金是多少 编辑:程序博客网 时间:2024/05/01 13:39

对于所有的项目都要应用此配置的话,在C:\Windows\System32\inetsrv\config里找到applicationHost.config文件,在,<system.webServer>路径下添加如下配置:添加如下配置:

 

  1. <security>  
  2.       <requestFiltering>  
  3.       <requestLimits maxQueryString="4080" />  
  4.       </requestFiltering>  
  5. </security>  

 

 

 

web.config中加入
<httpRuntime maxRequestPathLength="360" maxQueryStringLength="1024" /> 

0 0
原创粉丝点击