title: binaryMessageEncoding cannot contain child element
body: <p>This question has to do with my previous question where I get errors trying to save <code>varbinary</code> to my database through a web service.</p>
  
  <p>I increased the <code>maxArrayLength</code> etc.. to send through to the server which works like this (in <code>web.config</code>):</p>
  
  <pre><code>&lt;binding name="OndernemersAward.Web.Service.EditAfbeeldingService.customBinding0"&gt;
      &lt;binaryMessageEncoding&gt;
         &lt;readerQuotas maxDepth="32"
            maxStringContentLength="2147483647"
            maxArrayLength="2147483647"
            maxBytesPerRead="2147483647"
            maxNameTableCharCount="2147483647" /&gt;
  
      &lt;/binaryMessageEncoding&gt;                  
      &lt;httpTransport /&gt;
    &lt;/binding&gt;
  </code></pre>
  
  <p>But when I try to do this in my <code>ServiceReferences.clientconfig</code></p>
  
  <pre><code>&lt;binding name="CustomBinding_EditAfbeeldingService"&gt;
        &lt;binaryMessageEncoding&gt;
        &lt;readerQuotas maxArrayLength="2147483647" maxNameTableCharCount="2147483647"
            maxStringContentLength="2147483647" maxDepth="2147483647"
            maxBytesPerRead="2147483647" /&gt;
        &lt;/binaryMessageEncoding&gt;
        &lt;httpTransport maxReceivedMessageSize="2147483647" maxBufferSize="2147483647"/&gt;
    &lt;/binding&gt;
  </code></pre>
  
  <p>I get the following error: </p>
  
  <blockquote>
    <p>The element 'binaryMessageEncoding' cannot contain child element 'readerQuotas' because the parent element's content model is empty.</p>
  </blockquote>
  
  <p>I'm just trying out things to try and fix the error I'm getting in my previous question, because I'm getting quite desperate. :P</p>
  
  <p>I hope somebody can help me,
  Thanks</p>