码迷,mamicode.com
首页 > Web开发 > 详细

.net post请求过长 , 超过配置 maxQueryStringLength值

时间:2018-04-08 00:11:48      阅读:1923      评论:0      收藏:0      [点我收藏+]

标签:runtime   class   请求   security   target   .net   none   one   nbsp   

 

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

 

<configuration>
    <system.web>
      <compilation debug="true" targetFramework="4.5" />
      <httpRuntime targetFramework="4.5" maxQueryStringLength="102400"  />
    </system.web>
    <system.webServer>
        <security>
            <requestFiltering>
                <requestLimits maxQueryString="102400" />
            </requestFiltering>
        </security>
    </system.webServer>

</configuration>

 

然后将web.config文件更新至服务器上与ajax同级目录下

 

 

.net post请求过长 , 超过配置 maxQueryStringLength值

标签:runtime   class   请求   security   target   .net   none   one   nbsp   

原文地址:https://www.cnblogs.com/ignacio/p/8735392.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!