huiselele 发表于 2017-12-28 22:33:46

Asp.net相关知识和经验的碎片化记录

  1、解决IIS7.0下“HTTP 错误 404.15 - Not Found 请求筛选模块被配置为拒绝包含的查询字符串过长的请求”问题
  方案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 的结合体,再次尝试,运行通过。
页: [1]
查看完整版本: Asp.net相关知识和经验的碎片化记录