修改get请求参数长度

久未见 提交于 2019-11-30 18:08:48

日志内容过长且使用get方式导致了"请求筛选模块被配置为拒绝包含的查询字符串过长的请求。"问题
解决:1,在Web.config中添加
<system.web>
<httpRuntime maxRequestLength="999999999" maxQueryStringLength="2097151" />
</system.web>
2.<system.webServer>
<security>
<requestFiltering>
<requestLimits maxAllowedContentLength="2147483647" maxQueryString="2147483647">
</requestLimits>
</requestFiltering>
</security>
</system.webServer>

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!