IIS 7 中的请求 URL 无效 [英] The request URL is invalid in IIS 7
问题描述
这是我的网址
URL 本身没有无效字符,因为所有内容都已加密.我还是得到了
There are no invalid characters in the URL itself as everything is encrypted. Still I am getting
错误请求 - 无效的 URLHTTP 错误 400.请求 URL 无效.
Bad Request - Invalid URL HTTP Error 400. The request URL is invalid.
我知道这个 URL 非常长,我可以通过添加这个来解决我的 Cassini 中的这个问题httpRuntime maxUrlLength="512"
I know the URL is awfully long and I was able to resolve that issue in my Cassini by adding this httpRuntime maxUrlLength="512"
在 web.config 中
in the web.config
但是在 IIS7 中,即使在使用 requestfiltering maxurl 和 maxquerystring 值之后,我也无法解决这个问题.
However in IIS7 even after playing around with the requestfiltering maxurl and maxquerystring values I have not been able to resolve this.
这是一个 asp.net mvc 3 应用程序.
This is an asp.net mvc 3 application.
推荐答案
您的问题是您使用的不是查询字符串,而是路径.路径的最大长度为 255.
Your problem is you're not using a query string, but a path. A path has a maximum length of 255.
这篇关于IIS 7 中的请求 URL 无效的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!