如何在查询字符串中传递长度值?
问题描述:
i get this error when i pass a value in query string .i tried below code but the same error exists.How to fix this error
HTTP Error 404.15 - Not Found
The Request filtering module is configured to deny a request where the query string is too long
i使用以下代码进行网址加密如果我删除此代码没有显示错误但我使用此加密代码即将发生同样的错误。
i use below code for url encryption if i remove this code no error is showing but i use this encryption code same error is coming.
<httpModules>
<add type="QueryStringModule" name="QueryStringModule"/>
</httpModules>
我尝试过:
What I have tried:
<configuration>
<system.webServer>
<security>
<requestFiltering>
<requestLimits maxQueryString="3000" maxUrl="1000" /> /* Change the Url limit here */
</requestFiltering>
</security>
</system.webServer>
</configuration>
<httpRuntime maxQueryStringLength="32768" maxUrlLength="65536"/>
<httpRuntime maxQueryStringLength="260" maxRequestLength="2048"/>
答
试试这个,经过测试。它根据您的问题和评论发布。
配置web.config以允许任何长度的请求 [ ^ ]
try this,tested. it works as per your question and comments posted.
configure the web.config to allow requests of any length [^]