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

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

可尝试的操作:

  • 确认 applicationhost.config 或 web.config 文件中的 configuration/system.webServer/security/requestFiltering/requestLimits@maxQueryString 设置。

<system.web>
    <compilation targetFramework="4.5.2" />
    <httpRuntime targetFramework="4.5.2" maxRequestLength="102400" maxQueryStringLength="102400"/>

 </system.web>

 

 

此请求的查询字符串的长度超过配置的 maxQueryStringLength 值

 <system.webServer>

<security>
<requestFiltering>
<requestLimits maxAllowedContentLength="2147483647" maxQueryString="2147483647"/>
</requestFiltering>
</security>
  </system.webServer>


版权声明:本文为timsqin原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。