title: How do I setup config files for WCF Data Service (odata) with EF 6
body: <p>I have a data service up and running, but I'm getting this error:</p>
  
  <blockquote>
    <p>The remote server returned an error: (413) Request Entity Too Large.</p>
  </blockquote>
  
  <p>I have tried a number of things to fix this with no luck.
  I have set the uploadReadAheadSize on the Web Site and the Data Service in IIS to the max setting.
  I have also tried a number of different setups for the config files.</p>
  
  <p>Here is the current app.config for the client:</p>
  
  <pre><code>  &lt;system.serviceModel&gt;
  &lt;bindings&gt;
    &lt;basicHttpBinding&gt;
      &lt;binding name="BasicHttpBinding_ILogging" /&gt;
      &lt;binding name="WCFHttpBinding"
               maxReceivedMessageSize="2147483647"
               maxBufferSize="2147483647"
               maxBufferPoolSize="2147483647"&gt;
        &lt;readerQuotas maxArrayLength="2147483647"
                      maxDepth="2147483647"
                      maxBytesPerRead="2147483647"
                      maxNameTableCharCount="2147483647"
                      maxStringContentLength="2147483647"/&gt;
      &lt;/binding&gt;
    &lt;/basicHttpBinding&gt;
    &lt;webHttpBinding&gt;
      &lt;binding name="WCFWebBinding" maxBufferPoolSize="2147483647" maxBufferSize="2147483647" maxReceivedMessageSize="2147483647"&gt;
        &lt;readerQuotas maxDepth="2147483647" maxStringContentLength="2147483647" maxArrayLength="2147483647" maxBytesPerRead="2147483647" maxNameTableCharCount="2147483647"/&gt;
      &lt;/binding&gt;
    &lt;/webHttpBinding&gt;
  &lt;/bindings&gt;
  &lt;client&gt;
    &lt;endpoint address="http://localhost/PSIDataService/PSIWcfDataService.svc"
              binding="webHttpBinding" bindingConfiguration="WCFWebBinding"
              name="WCFWebBinding" contract="*"/&gt;
  &lt;/client&gt;
  </code></pre>
  
  <p></p>
  
  <p>I have tried both bindings, WCFWebBinding and WCFHttpBinding.</p>
  
  <p>Here is the web service web.config.</p>
  
  <pre><code>  &lt;system.serviceModel&gt;
  &lt;behaviors&gt;
    &lt;serviceBehaviors&gt;
      &lt;behavior name=""&gt;
        &lt;serviceMetadata httpGetEnabled="true" httpsGetEnabled="true" /&gt;
        &lt;serviceDebug includeExceptionDetailInFaults="true" /&gt;
      &lt;/behavior&gt;
    &lt;/serviceBehaviors&gt;
  &lt;/behaviors&gt;
  &lt;bindings&gt;
    &lt;basicHttpBinding&gt;
      &lt;binding name="WCFHttpBinding" maxBufferPoolSize="2147483647" maxBufferSize="2147483647" maxReceivedMessageSize="2147483647" messageEncoding="Text"&gt;
        &lt;readerQuotas maxDepth="2147483647" maxStringContentLength="2147483647" maxArrayLength="2147483647" maxBytesPerRead="2147483647" maxNameTableCharCount="2147483647" /&gt;
      &lt;/binding&gt;
    &lt;/basicHttpBinding&gt;
    &lt;webHttpBinding&gt;
      &lt;binding name="WCFWebBinding" maxBufferPoolSize="2147483647" maxBufferSize="2147483647" maxReceivedMessageSize="2147483647"&gt;
        &lt;readerQuotas maxDepth="2147483647" maxStringContentLength="2147483647" maxArrayLength="2147483647" maxBytesPerRead="2147483647" maxNameTableCharCount="2147483647"/&gt;
      &lt;/binding&gt;
    &lt;/webHttpBinding&gt;
  &lt;/bindings&gt;
  &lt;client&gt;
    &lt;endpoint address="http://localhost/PSIDataService/PSIWcfDataService.svc"
        binding="basicHttpBinding"
        bindingConfiguration="WCFHttpBinding"
        name="WCFHttpBinding"
        contract="*"/&gt;
  
  &lt;/client&gt;
  </code></pre>
  
  <p></p>
  
  <p>Again, I have tried both bindings.  I don't know what else can be done.  Any help would be great.</p>