问题与查询字符串参数长度。 HTTP错误400
谁能告诉我问题与我的网址: - http://www.advantarealty.net/Search//Condo,Single-Family-Home,Townhome_PropertyType/True_ForMap/8_Zoom/-81.3043212890625T29.099376992628493,-80.88134765625T28.9120147012556, -80.826416015625T28.41555985166584,-81.1669921875T28.033197847676377,-81.6888427734375T28.033197847676377,-82.1392822265625T28.222130007158537,-82.2601318359375T28.584521719370418,-82.1612548828125T28.92163128242129,-81.9305419921875T29.257648503615542,-81.6339111328125T29.248063243796576,-81.6064453125 T28.849485201023,-81.3043212890625T29.099376992628493_Polygon /
我总是遇到错误。
错误的请求 - 无效的网址。 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>
使用[授权]时,我尝试请求超过配置的maxQueryStringLength
如何配置web.config以允许任意长度的请求
您的网址中有似乎不属于的正斜杠。 如果你更换
“HTTP://www.advantarealty.net/Search//Condo,Single-Family-Home,Townhome_PropertyType/True_ForMap/8_Zoom / ...”
同
“http://www.advantarealty.net/Search/Condo,Single-Family-Home,Townhome_PropertyType,True_ForMap,8_Zoom”
你将有一个有效的网址。 我通过从您的问题中复制URL并替换那些无关的“/”来证明这一点。
链接地址: http://www.djcxy.com/p/7249.html上一篇: Issue with Query String Parameter Length. Http Error 400