title: The maximum message size quota for incoming messages (65536) has been exceeded
body: <p>I have a silverlight app that is calling a WCF service in another project (same solution)
  Problem is I get the all so common error 65536
  I have read tons of articles and I have tried everything still getting this message.</p>
  
  <p>Here is my Web Service</p>
  
  <pre><code>&lt;system.web&gt;
    &lt;compilation debug="true" strict="false" explicit="true" targetFramework="4.0" /&gt;
    &lt;httpRuntime maxRequestLength="2147483647"/&gt;
    &lt;customErrors mode="Off"/&gt;
  &lt;/system.web&gt;
  &lt;system.serviceModel&gt;
    &lt;services&gt;
      &lt;service behaviorConfiguration="ServiceBehavior" name="MyRemoteHostService"&gt;
        &lt;endpoint address="" binding="basicHttpBinding" 
                  bindingConfiguration="BasicHttpBinding_MyRemoteHostService"
                  contract="MyServiceReference.MyRemoteHostService" /&gt;
  
        &lt;endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" /&gt;
      &lt;/service&gt;
    &lt;/services&gt;
    &lt;serviceHostingEnvironment aspNetCompatibilityEnabled="false"
                               multipleSiteBindingsEnabled="true" /&gt;
    &lt;bindings&gt;
      &lt;basicHttpBinding&gt;
        &lt;binding name="BasicHttpBinding_MyRemoteHostService"
                 maxBufferPoolSize="2147483647"
                 maxReceivedMessageSize="2147483647"
                 maxBufferSize="2147483647"&gt;
          &lt;readerQuotas maxArrayLength="2147483647"
                        maxBytesPerRead="2147483647"
                        maxDepth="2147483647"
                        maxNameTableCharCount="2147483647"
                        maxStringContentLength="2147483647" /&gt;
        &lt;/binding&gt;
      &lt;/basicHttpBinding&gt;
    &lt;/bindings&gt;
    &lt;behaviors&gt;
      &lt;serviceBehaviors&gt;
        &lt;behavior name="ServiceBehavior"&gt;
          &lt;serviceMetadata httpGetEnabled="true" /&gt;
          &lt;serviceDebug includeExceptionDetailInFaults="false" /&gt;
          &lt;dataContractSerializer maxItemsInObjectGraph="2147483647" /&gt;
        &lt;/behavior&gt;
      &lt;/serviceBehaviors&gt;
    &lt;/behaviors&gt;
  &lt;/system.serviceModel&gt;
  &lt;system.webServer&gt;
    &lt;modules runAllManagedModulesForAllRequests="true"/&gt;
  &lt;/system.webServer&gt;
  </code></pre>
  
  <p>and here is my client side ServiceReferences.ClientConfig</p>
  
  <pre><code>&lt;system.web&gt;
    &lt;compilation debug="true" strict="false" explicit="true" targetFramework="4.0" /&gt;
    &lt;httpRuntime maxRequestLength="2147483647"/&gt;
    &lt;customErrors mode="Off"/&gt;
  &lt;/system.web&gt;
  &lt;system.serviceModel&gt;
    &lt;bindings&gt;
      &lt;basicHttpBinding&gt;
        &lt;binding name="BasicHttpBinding_MyRemoteHostService" 
                 closeTimeout="00:01:00"
                 openTimeout="00:01:00" 
                 receiveTimeout="00:05:00" 
                 sendTimeout="00:02:00"
                 maxBufferSize="2147483647" 
                 maxReceivedMessageSize="2147483647"&gt;
          &lt;security mode="None"&gt;&lt;/security&gt;
        &lt;/binding&gt;
      &lt;/basicHttpBinding&gt;
    &lt;/bindings&gt;
    &lt;client&gt;
      &lt;endpoint address="http://localhost:2622/MyRemoteHostService.svc"
                binding="basicHttpBinding"
                bindingConfiguration="BasicHttpBinding_MyRemoteHostService"
                contract="MyServiceReference.MyRemoteHostService"
                  name="BasicHttpBinding_MyRemoteHostService" /&gt;
      &lt;endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" /&gt;
    &lt;/client&gt;
  &lt;/system.serviceModel&gt;
  </code></pre>