title: Wcf-The maximum message size quota for incoming messages (65536) has been exceeded?
body: <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>
  
  <pre><code>&lt;system.serviceModel&gt;
  
  &lt;services&gt;
    &lt;service name="FileService.Service1" behaviorConfiguration="FileService.Service1Behavior"&gt;
      &lt;host&gt;
        &lt;baseAddresses&gt;
          &lt;add baseAddress = "http://localhost:8732/Design_Time_Addresses/FileService/Service1/" /&gt;
        &lt;/baseAddresses&gt;
      &lt;/host&gt;
      &lt;!-- Service Endpoints --&gt;
      &lt;!-- Unless fully qualified, address is relative to base address supplied above --&gt;
      &lt;endpoint address ="" binding="wsHttpBinding" contract="FileService.IService1"&gt;
        &lt;!-- 
            Upon deployment, the following identity element should be removed or replaced to reflect the 
            identity under which the deployed service runs.  If removed, WCF will infer an appropriate identity 
            automatically.
        --&gt;
        &lt;identity&gt;
          &lt;dns value="localhost"/&gt;
        &lt;/identity&gt;
      &lt;/endpoint&gt;
      &lt;!-- Metadata Endpoints --&gt;
      &lt;!-- The Metadata Exchange endpoint is used by the service to describe itself to clients. --&gt; 
      &lt;!-- This endpoint does not use a secure binding and should be secured or removed before deployment --&gt;
      &lt;endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange"/&gt;
    &lt;/service&gt;
  &lt;/services&gt;
  &lt;behaviors&gt;
    &lt;serviceBehaviors&gt;
      &lt;behavior name="FileService.Service1Behavior"&gt;
        &lt;!-- To avoid disclosing metadata information, 
        set the value below to false and remove the metadata endpoint above before deployment --&gt;
        &lt;serviceMetadata httpGetEnabled="True"/&gt;
        &lt;!-- To receive exception details in faults for debugging purposes, 
        set the value below to true.  Set to false before deployment 
        to avoid disclosing exception information --&gt;
        &lt;serviceDebug includeExceptionDetailInFaults="False" /&gt;
      &lt;/behavior&gt;
    &lt;/serviceBehaviors&gt;
    &lt;/behaviors&gt;
    &lt;/system.serviceModel&gt;
  </code></pre>