Note that there are some explanatory texts on larger screens.

plurals
  1. POWCF Error - The maximum message size quota for incoming messages (65536) has been exceeded
    primarykey
    data
    text
    <p>My Setup:</p> <ul> <li>ASP.NET client hosted in IIS Express</li> <li>WCF Service hosted in Console Application</li> <li>Running Visual Studio.NET 2012 in Admin mode</li> </ul> <p>I am trying to return 2 List objects from a WCF service. My setup WORKS FINE when I return just 1 List objects. But when I return 2 List objects I get the error:</p> <p>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.</p> <p>I know that this question has been asked many times on this site and other sites as well. I have tried almost everything posted on the internet with various combinations of the CONFIG FILE but still this has not worked out for me.</p> <p>Client Config:</p> <pre><code>&lt;configuration&gt; &lt;system.web&gt; &lt;compilation debug="true" targetFramework="4.0" /&gt; &lt;httpRuntime maxRequestLength="1572864"/&gt; &lt;/system.web&gt; &lt;system.serviceModel&gt; &lt;client&gt; &lt;endpoint name="basicHttpBinding" address="http://localhost:9502/HCDataService" binding="basicHttpBinding" bindingConfiguration="basicHttpBinding" contract="HC.APP.Common.ServiceContract.IHCServiceContract" behaviorConfiguration="ServiceBehaviour"&gt; &lt;/endpoint&gt; &lt;/client&gt; &lt;bindings&gt; &lt;basicHttpBinding&gt; &lt;binding name="basicHttpBinding" maxBufferSize="2147483647" maxBufferPoolSize="524288" maxReceivedMessageSize="2147483647"&gt; &lt;readerQuotas maxDepth="128" maxStringContentLength="2147483647" maxArrayLength="2147483646" maxBytesPerRead="4096" maxNameTableCharCount="16384" /&gt; &lt;/binding&gt; &lt;/basicHttpBinding&gt; &lt;/bindings&gt; &lt;behaviors&gt; &lt;endpointBehaviors&gt; &lt;behavior name="ServiceBehaviour"&gt; &lt;dataContractSerializer maxItemsInObjectGraph="2147483647"/&gt; &lt;/behavior&gt; &lt;/endpointBehaviors&gt; &lt;/behaviors&gt; &lt;/system.serviceModel&gt; &lt;/configuration&gt; </code></pre> <p>Server Config:</p> <pre><code>&lt;configuration&gt; &lt;system.serviceModel&gt; &lt;services&gt; &lt;service name="HC.APP.Server.Service.HCDataService" behaviorConfiguration="ServiceBehaviour"&gt; &lt;host&gt; &lt;baseAddresses&gt; &lt;add baseAddress="http://localhost:9502/HCDataService"/&gt; &lt;/baseAddresses&gt; &lt;/host&gt; &lt;endpoint name="basicHttpBinding" address="http://localhost:9502/HCDataService" binding="basicHttpBinding" bindingConfiguration="basicHttpBinding" contract="HC.APP.Common.ServiceContract.IHCServiceContract"&gt; &lt;/endpoint&gt; &lt;/service&gt; &lt;/services&gt; &lt;bindings&gt; &lt;basicHttpBinding&gt; &lt;binding name="basicHttpBinding" maxBufferSize="2147483647" maxReceivedMessageSize="2147483647" closeTimeout="01:50:00" openTimeout="01:50:00" sendTimeout="01:50:00" receiveTimeout="01:50:00" &gt; &lt;readerQuotas maxDepth="128" maxStringContentLength="8388608" maxArrayLength="2147483646" maxBytesPerRead="4096" maxNameTableCharCount="16384" /&gt; &lt;/binding&gt; &lt;/basicHttpBinding&gt; &lt;/bindings&gt; &lt;behaviors&gt; &lt;serviceBehaviors&gt; &lt;behavior name="ServiceBehaviour"&gt; &lt;serviceDebug includeExceptionDetailInFaults="true" /&gt; &lt;serviceMetadata httpGetEnabled="true" /&gt; &lt;dataContractSerializer ignoreExtensionDataObject="false" maxItemsInObjectGraph="2147483646" /&gt; &lt;/behavior&gt; &lt;/serviceBehaviors&gt; &lt;/behaviors&gt; &lt;/system.serviceModel&gt; &lt;/configuration&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload