此请求的查询字符串的长度超过配置的 maxQueryStringLength 值。

 错误提示如下:

 

错误原因:iis默认限制了get提交参数的字符长度。

解决方法:在应用程序根目录下放置web.config文件,内容如下:

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
    <system.web>
    	<httpRuntime maxRequestLength="999999999" maxQueryStringLength="2097151" />
    </system.web>
</configuration>

猜你喜欢

转载自blog.csdn.net/sysdzw/article/details/82931674