请求URL是在IIS 7无效 [英] The request URL is invalid in IIS 7
问题描述
这是我的网址
<一个href=\"http://abc.domain.com/controller/action/A74444C3A7FA858C7995CA9954CBCF1E26604634767C5575396D908E8415CF8CCC04C05F49FED0AA9D9743B69ABF232BDE9787A5222D081DA638896C0D2379A673E1747A2FFE1158F14AF098B2899D2ABEB4EA738D89369627E479796B6B2B9EA9B247CC59EF10E3A88B6A56A87F0818E2AD2A942FFA31F1C941BB7AF6FDC55FE6733353F28DFAC1827688604CBFBAB4856E6C75F810D13923F9D913F51F5B02980163E6CD63BC04610AD2C12E07360D7BC2C69F1B0CD03E\">http://abc.domain.com/controller/action/A74444C3A7FA858C7995CA9954CBCF1E26604634767C5575396D908E8415CF8CCC04C05F49FED0AA9D9743B69ABF232BDE9787A5222D081DA638896C0D2379A673E1747A2FFE1158F14AF098B2899D2ABEB4EA738D89369627E479796B6B2B9EA9B247CC59EF10E3A88B6A56A87F0818E2AD2A942FFA31F1C941BB7AF6FDC55FE6733353F28DFAC1827688604CBFBAB4856E6C75F810D13923F9D913F51F5B02980163E6CD63BC04610AD2C12E07360D7BC2C69F1B0CD03E
有在URL本身作为一切都没有加密无效字符。还是我越来越
There are no invalid characters in the URL itself as everything is encrypted. Still I am getting
错误的请求 - 无效的网址
HTTP错误400.请求URL是无效的。
Bad Request - Invalid URL HTTP Error 400. The request URL is invalid.
我知道URL是相当长的,我是能够解决这一问题,我的卡西尼号加入这个
的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.
这篇关于请求URL是在IIS 7无效的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!