WCF错误:413 Request Entity Too Large 的一个解决方法

一个简单的解决方案是:不管是服务端还是客户端,在web.config下 的system.serviceModel标签下方增加一个没有设置名字的Binding默认配置就行了。

具体配置如下:

<system.serviceModel>
<bindings>
      <basicHttpBinding>
        <binding closeTimeout="00:10:00" receiveTimeout="00:20:00" sendTimeout="00:20:00" maxBufferSize="2147483647" maxReceivedMessageSize="2147483647">
        </binding>
      </basicHttpBinding>
</bindings>
</system.serviceModel>

  

原文地址:https://www.cnblogs.com/wzihan/p/14744435.html