Posts Tagged ‘The maximum message size quota for incoming messages (65536) has been exceeded’

If your client receives error The maximum message size quota for incoming messages (65536) has been exceeded. To increase the quota, use the MaxReceivedMessageSize property on the appropriate binding element from WCF Service,it means that your client web.config has MaxReceivedMessageSize property set to default value 65536 which has exceeded resulting in above exception.Change the MaxReceivedMessageSize settings in web.config to a large value to overcome this.

<basicHttpBinding>
<binding name="BasicHttpBinding_InternalSOAP" closeTimeout="00:01:00" openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00" allowCookies="false" bypassProxyOnLocal="false" hostNameComparisonMode="StrongWildcard" maxBufferSize="20000000" maxBufferPoolSize="524288" maxReceivedMessageSize="20000000" messageEncoding="Text" textEncoding="utf-8" transferMode="Buffered" useDefaultWebProxy="true">
<readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384" maxBytesPerRead="4096" maxNameTableCharCount="16384"/>
</binding>
</basicHttpBinding>