title: WCF MaxReceivedMessageSize will not update when changed in the web.config
body: <p>I've looked around on the web and none of the solutions to this problem seem to work for me.  I have a WCF service being consumed by a Silverlight application.  Everything works fine until I attempt to update a large object graph.  My trace logs greet me with the lovely error:</p>
  
  <blockquote>
    <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>
  </blockquote>
  
  <p>I've changed the setting in both my web.config file and in the Silverlight's ClientConfig file and even tried manually creating the proxy and setting the value in code.</p>
  
  <p>My web.config:</p>
  
  <pre><code>  &lt;system.serviceModel&gt;
      &lt;diagnostics&gt;
        &lt;messageLogging logMalformedMessages="true" logMessagesAtTransportLevel="true" /&gt;
        &lt;endToEndTracing propagateActivity="true" activityTracing="true"
               messageFlowTracing="true" /&gt;
      &lt;/diagnostics&gt;
      &lt;bindings&gt;
        &lt;basicHttpBinding&gt;
          &lt;binding name="basicHttpBindingSettings" closeTimeout="00:10:00" openTimeout="00:10:00" sendTimeout="00:10:00" 
                   maxReceivedMessageSize="2147483647" maxBufferPoolSize="2147483647" maxBufferSize="2147483647" messageEncoding="Text"&gt;
            &lt;readerQuotas maxDepth="2147483647" maxStringContentLength="2147483647" 
                          maxArrayLength="2147483647" maxBytesPerRead="2147483647" maxNameTableCharCount="2147483647" /&gt;
          &lt;/binding&gt;
        &lt;/basicHttpBinding&gt;
      &lt;/bindings&gt;
      &lt;services&gt;
        &lt;service name="TestConfigService"&gt;
          &lt;endpoint address="" contract="PreferencesUI.Hub.PreferenceSVC.ITestConfig" binding="basicHttpBinding"
                    bindingConfiguration="basicHttpBindingSettings" /&gt;
        &lt;/service&gt;
      &lt;/services&gt;
    &lt;/system.serviceModel&gt;
  </code></pre>
  
  <p>My Silverlight:</p>
  
  <pre><code>        EndpointAddress ea = new EndpointAddress("http://localhost:37935/TestConfig.svc");
  
  
          BasicHttpBinding binding = new BasicHttpBinding(BasicHttpSecurityMode.None);
          binding.CloseTimeout = new TimeSpan(00, 5, 00);
          binding.OpenTimeout = new TimeSpan(00, 5, 00);
          binding.ReceiveTimeout = new TimeSpan(00, 5, 00);
          binding.SendTimeout = new TimeSpan(00, 5, 00);
          binding.TextEncoding = System.Text.Encoding.UTF8;
          binding.MaxReceivedMessageSize = int.MaxValue;
          binding.MaxBufferSize = int.MaxValue;
  
  
          _preferenceTSTServiceProxy = new TSTC.TestConfigClient(binding, ea);
  </code></pre>
  
  <p>Does anyone see what I've missed here?  Everything I find on the web points out that someone forgot to either set maxReceivedMessageSize or forgot to give the endpoint a bindingConfiguration name value (both of which I've done).</p>