title: Error:The Maximum message size quota for incoming messages
body: <p><code>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.</code></p>
  
  <p>I have mentioned value in proxy. Do I need to mention in server side WCF Web.Config. If yes then may I know how?</p>
  
  <p>My WCF Web.Config is mentioned below.</p>
  
  <pre><code>&lt;binding name="NewBinding0" closeTimeout="00:10:00" openTimeout="00:10:00" receiveTimeout="00:10:00" sendTimeout="00:10:00" maxReceivedMessageSize="20000000"&gt;                
    &lt;readerQuotas maxDepth="2147483647" maxStringContentLength="2147483647" maxArrayLength="2147483647" maxBytesPerRead="2147483647" maxNameTableCharCount="2147483647" /&gt;
    &lt;reliableSession enabled="true" /&gt;
      &lt;security mode="None"&gt;
        &lt;transport clientCredentialType="None" /&gt;
        &lt;message clientCredentialType="Windows" negotiateServiceCredential="true" establishSecurityContext="false" /&gt;
      &lt;/security&gt;
    &lt;/binding&gt;
  </code></pre>
  
  <p>My Client side coding.</p>
  
  <pre><code>WSHttpBinding binding = new WSHttpBinding();
  //binding.ReaderQuotas.MaxArrayLength = 10485760;
  //binding.MaxReceivedMessageSize = 10485760;
  binding.Security.Mode = SecurityMode.None;
  binding.Security.Transport.ClientCredentialType = HttpClientCredentialType.None;
  binding.Security.Message.ClientCredentialType = MessageCredentialType.Windows;
  binding.Security.Message.EstablishSecurityContext = false;
  //binding.Security.Message.NegotiateServiceCredential = true;
  binding.ReliableSession.Enabled = true;
  binding.ReaderQuotas.MaxArrayLength = 2147483647;
  binding.ReaderQuotas.MaxDepth = 2147483647;
  binding.ReaderQuotas.MaxNameTableCharCount = 2147483647;
  binding.ReaderQuotas.MaxBytesPerRead = 2147483647;
  binding.MaxReceivedMessageSize = 20000000;
  binding.ReaderQuotas.MaxStringContentLength = 2147483647;
  binding.SendTimeout = TimeSpan.FromMinutes(10);
  binding.CloseTimeout = TimeSpan.FromMinutes(10);
  binding.OpenTimeout = TimeSpan.FromMinutes(10);
  binding.ReceiveTimeout = TimeSpan.FromMinutes(10);
  //EndpointIdentity.CreateUpnIdentity("user@domain");
  ChannelFactory&lt;IDBSyncContract&gt; factory = new ChannelFactory&lt;IDBSyncContract&gt;(binding, new EndpointAddress(endPointURL));
  dbProxy = factory.CreateChannel();
  this.dbProxy = dbProxy as IDBSyncContract;
  </code></pre>