【发布时间】:2015-10-15 23:07:09
【问题描述】:
我总是遇到错误。
错误请求 - 无效的 URL。 HTTP 错误 400。请求 URL 无效。
在上面的 URL 中,我猜它超过了最大查询字符串参数长度,所以我尝试像下面这样增加它。
<system.web>
<!--<httpRuntime maxQueryStringLength="32768" maxUrlLength="65536"/>-->
<httpRuntime targetFramework="4.5" maxUrlLength="2097151" relaxedUrlToFileSystemMapping="true" maxQueryStringLength="2097151" />
</system.web>
<system.webServer>
<security>
<requestFiltering>
<requestLimits maxUrl="40960" maxQueryString="2097151" />
</requestFiltering>
</security>
</system.webServer>
我试过了 request exceeds the configured maxQueryStringLength when using [Authorize]
How to configure the web.config to allow requests of any length
【问题讨论】:
-
你试过非 ie 浏览器,它们提供高达 5 mb 的数据
-
我正在检查 Chrome 43,FF 39
-
@JitendraPancholi 你好先生,你有解决办法吗,那么请帮助我。
-
@Abhishek:是的,我会尽快添加解决方案。
-
@JitendraPancholi 你是怎么解决这个问题的?
标签: .net asp.net-mvc iis webserver windows-server-2008