当前位置:编程学习 > asp >>

解决wcf接收post数据400错误

记得在webconfig绑定上(binding)配置最大接收数据长度

[html] 
<webHttpBinding> 
              <binding name="webBinding" maxReceivedMessageSize="2147483647"  crossDomainScriptAccessEnabled="true" > 
                  <readerQuotas maxDepth="2147483647" maxStringContentLength="2147483647" maxArrayLength="2147483647" maxBytesPerRead="2147483647" maxNameTableCharCount="2147483647"/> 
              </binding> 
          </webHttpBinding> 

补充:Web开发 , ASP.Net ,
CopyRight © 2022 站长资源库 编程知识问答 zzzyk.com All Rights Reserved
部分文章来自网络,