Hi Alinoson,
According to this case, if you not set maxReceivedMessageSize in your web.config file of server-side
and client. And you want to send a message which is larger than 64k. Then it will got the error.
Because, the maxReceivedMessageSize default size is 65536 bytes. So, I suggest you need
to set maxReceivedMessageSize in your web.config, like below:
bindings>
<wsHttpBinding>
<binding name="BindingCD" receiveTimeout="00:10:00" closeTimeout="00:05:00" openTimeout="00:05:00" sendTimeout="00:05:00"
maxBufferPoolSize="1048576000" maxReceivedMessageSize="1048576000" >
client:
<bindings>
<wsHttpBinding>
<binding name="WSHttpBinding_ISettingServ" closeTimeout="00:01:00"
openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00"
bypassProxyOnLocal="false" transactionFlow="false" hostNameComparisonMode="StrongWildcard"
maxBufferPoolSize="524288000" maxReceivedMessageSize="65536000">
For more information, please refer to the following articles:
1.Transferring large blobs of data with WCF
I hope that will be helpful to you.
Best Regards,
Grady