问题:已超过传入消息(65536000)的最大消息大小配额。若要增加配额,请使用相应绑定元素上的 MaxReceivedMessageSize 属性。
解决
办法1:调用方的代码里加入:
(client.Endpoint.Binding as WSHttpBinding).MaxReceivedMessageSize = int.MaxValue;
办法2:修改客户端调用方的Config配置文件:
<system.serviceModel>
<bindings>
<wsHttpBinding>
<binding maxReceivedMessageSize="65536000"