by Raju Maharjan
1. December 2010 18:30
If you even faced the exception message as below while developing application using SageCRM web services then here is the solution.
"To increase the quota, use the MaxReceivedMessageSize property on the appropriate binding element."
Find the below section in your app.config or web.config within your application.
<system.serviceModel>
<bindings>
<basicHttpBinding>
<binding name="WebServiceSoapBinding" closeTimeout="00:01:00"
openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00"
allowCookies="false" bypassProxyOnLocal="false" hostNameComparisonMode="StrongWildcard"
maxBufferSize="65536" maxBufferPoolSize="524288" maxReceivedMessageSize="65536"
messageEncoding="Text" textEncoding="utf-8" transferMode="Buffered"
useDefaultWebProxy="true">
<readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384"
maxBytesPerRead="4096" maxNameTableCharCount="16384" />
<security mode="None">
<transport clientCredentialType="None" proxyCredentialType="None"
realm="" />
<message clientCredentialType="UserName" algorithmSuite="Default" />
</security>
</binding>
</basicHttpBinding>
</bindings>
You can find the property as maxReceivedMessageSize="65536" which is set by default to 65536. You may change this property as per your need.
Domain Registration, Web Hosting and Reseller Web Hosting
Start Web Hosting from just $2.5/Month