我总是低于错误。
错误请求 - 无效网址。 HTTP错误400.请求网址无效。
在上面的网址中,我猜它超出了最大查询字符串参数长度,所以我尝试增加它,如下所示。
<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
答案 0 :(得分:0)
您的网址中有正斜杠,似乎不属于您。如果你替换
&#34; http://www.advantarealty.net/Search//Condo,Single-Family-Home,Townhome_PropertyType/True_ForMap/8_Zoom/ ...&#34;
带
&#34; http://www.advantarealty.net/Search/Condo,Single-Family-Home,Townhome_PropertyType,True_ForMap,8_Zoom,&#34;
您将拥有有效的网址。我通过复制你的问题中的URL并替换那些无关的&#34; /&#34; s来证明这一点。