title: HTTP 413 Request Entity Too Large In Self-Hosting WCF Service
body: <p>I have a self-hosting WCF service accepting messages via HTTPS.</p>
  <p>A message is being sent from a Java application, which receives the response:</p>
  <pre><code>HTTP/1.1 413 Request Entity Too Large
  Content-Length: 0
  Server: Microsoft-HTTPAPI/2.0
  Date: Wed, 19 Sep 2012 09:05:34 GMT
  Connection: close
  </code></pre>
  <p>I am not attempting to upload a file, just send an XML/SOAP message, which is 78kb. I have tried upping my max message and buffer sizes but to no avail.</p>
  <pre><code>  &lt;binding name=&quot;SecuredNoProxy&quot; openTimeout=&quot;00:00:10&quot; sendTimeout=&quot;00:00:10&quot;&gt;
        &lt;textMessageEncoding messageVersion=&quot;Soap11WSAddressing10&quot; /&gt;
        &lt;security includeTimestamp=&quot;true&quot; enableUnsecuredResponse=&quot;true&quot;&gt;
            &lt;localClientSettings timestampValidityDuration=&quot;00:15:00&quot; /&gt;
        &lt;/security&gt;
        &lt;httpsTransport manualAddressing=&quot;false&quot; maxBufferPoolSize=&quot;2147483647&quot; maxReceivedMessageSize=&quot;2147483647&quot; maxBufferSize=&quot;2147483647&quot; allowCookies=&quot;false&quot; bypassProxyOnLocal=&quot;true&quot; decompressionEnabled=&quot;true&quot; hostNameComparisonMode=&quot;StrongWildcard&quot; keepAliveEnabled=&quot;true&quot; realm=&quot;&quot; transferMode=&quot;Buffered&quot; unsafeConnectionNtlmAuthentication=&quot;false&quot; useDefaultWebProxy=&quot;false&quot; requireClientCertificate=&quot;true&quot; /&gt;
    &lt;/binding&gt;
  </code></pre>
  <p>Please let me know if I can supply any additional information.</p>
  <p><strong>WCF Trace Log</strong></p>
  <blockquote>
  <p>Receive bytes on connection 'https://localhost'</p>
  <p>Activity boundary (Start)</p>
  <p>Connection information</p>
  <p>Throwing an exception (Error)</p>
  </blockquote>
  <p>The exception is:</p>
  <blockquote>
  <p>System.ServiceModel.ProtocolException, System.ServiceModel, Version=4.0.0.0, Culture=neutral</p>
  </blockquote>