title: WCF MaxReceivedMessageSize not working correctly (not being read)
body: <p>I have a WCF service in which I'm trying to pull out a certain XML file, and send this file to the client, but I keep getting this 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 have changed the <code>maxReceivedMessageSize</code> in my app.config.</p>
  
  <p><strong>App.config</strong></p>
  
  <p><strong><em>Endpoint configuration</em></strong></p>
  
  <pre><code>&lt;services&gt;
    &lt;service name="MobileReportService.Service" behaviorConfiguration="ServiceBehavior"&gt;
      &lt;host&gt;
        &lt;baseAddresses&gt;
          &lt;add baseAddress="http://localhost:8733/Design_Time_Addresses/MobileReportService/Service/" /&gt;
        &lt;/baseAddresses&gt;
      &lt;/host&gt;
      &lt;endpoint name="ServiceEndpoint"
              binding="basicHttpBinding"
              contract="MobileReportService.IService"&gt;
        &lt;identity&gt;
          &lt;dns value="localhost" /&gt;
        &lt;/identity&gt;
      &lt;/endpoint&gt;
      &lt;endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" /&gt;
    &lt;/service&gt;
  &lt;/services&gt;
  </code></pre>
  
  <p><strong><em>Binding configuration</em></strong></p>
  
  <pre><code>&lt;bindings&gt;
    &lt;basicHttpBinding&gt;
      &lt;binding maxBufferPoolSize="5242880" maxBufferSize="5242880"
        maxReceivedMessageSize="5242880" /&gt;
    &lt;/basicHttpBinding&gt;
  &lt;/bindings&gt;
  </code></pre>
  
  <p>I don't quite understand why the <code>maxReceivedMessageSize</code> can't be read?</p>
  
  <h2>Edit</h2>
  
  <p>I'm testing the service through the popup that appears whenever I run the service, by pressing "Invoke"</p>
  
  <p><a href="https://i.stack.imgur.com/gsIec.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/gsIec.png" alt="enter image description here"></a></p>