title: response: 413 Request Entity Too Large
body: <p>When POSTing a request which can contain one or more files (as base64 string) I get this error response:</p>
  
  <blockquote>
    <p>ERROR 2018-11-22 09:54:18,244 [13   ] Mvc.ExceptionHandling.AbpExceptionFilter - The remote server returned an unexpected response: (413) Request Entity Too Large.
    System.ServiceModel.ProtocolException: The remote server returned an unexpected response: (413) Request Entity Too Large.
       at System.Runtime.AsyncResult.End[TAsyncResult](IAsyncResult result)
       at System.ServiceModel.Channels.ServiceChannel.SendAsyncResult.End(SendAsyncResult result)
       at System.ServiceModel.Channels.ServiceChannel.EndCall(String action, Object[] outs, IAsyncResult result)
       at System.ServiceModel.Channels.ServiceChannelProxy.TaskCreator.&lt;>c__DisplayClass1_0.b__0(IAsyncResult asyncResult)
    --- End of stack trace from previous location where exception was thrown ---
       at ...</p>
  </blockquote>
  
  <p>I have searched on how to resolve this but I get redirected to WCF solutions all the time.</p>
  
  <p>I have added the following to the web.config of my WebApi project but it doesn't seem to make a difference.</p>
  
  <pre><code>&lt;configuration&gt;
    &lt;system.webServer&gt;
      ....
      &lt;asp&gt;
        &lt;limits maxRequestEntityAllowed="2147483648"/&gt;
      &lt;/asp&gt;
      &lt;serverRuntime uploadReadAheadSize="2147483647" /&gt;
    &lt;/system.webServer&gt;
  &lt;/configuration&gt;
  </code></pre>
  
  <p>Can anyone help me or point me to the right resource?</p>