首页 > Web开发 > 详细

http 413 wcf

时间:2016-08-31 22:21:12      阅读:306      评论:0      收藏:0      [点我收藏+]

在网上搜到413的解决办法有多种,看具体项目找到对应的解决办法

如果是wcf返回的413,与serverRuntime无关,只要在Binding中设置最大接收值即可,

   <binding name="basic-http-bind-cfg" messageEncoding="Text"   maxBufferPoolSize="2147483647" 
      maxReceivedMessageSize="2147483647" 
      maxBufferSize="2147483647" >
          <security mode="TransportCredentialOnly">
            <transport clientCredentialType="Windows"/>
          </security>
         
        </binding>

如果还不行,这样设置就可以了,我就是这样解决的

   <basicHttpBinding>

        <binding   maxBufferPoolSize="2147483647" 
      maxReceivedMessageSize="2147483647" 
      maxBufferSize="2147483647">
          <security mode="TransportCredentialOnly">
            <transport clientCredentialType="Windows" />
          </security>
        </binding>

        <binding name="basic-http-bind-cfg" messageEncoding="Text"   maxBufferPoolSize="2147483647" 
      maxReceivedMessageSize="2147483647" 
      maxBufferSize="2147483647" >
          <security mode="TransportCredentialOnly">
            <transport clientCredentialType="Windows"/>
          </security>
        
        </binding>

第一个无name的binding很重要

http 413 wcf

原文:http://www.cnblogs.com/langu/p/5827496.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!