title: WCF - The maximum string content length quota (8192) has been exceeded while reading XML data
body: <p>I have a web service that is used by third parties to access various bits of functionality for the company I work for. This web service is using another web service within the company to send email, and this is the error we're receiving on particularly long emails - "The maximum string content length quota (8192) has been exceeded while reading XML data."</p>
  
  <p>I've already read through the question and answers <a href="https://stackoverflow.com/questions/6600057/the-maximum-string-content-length-quota-8192-has-been-exceeded-while-reading-x">here</a>, but with no luck. I've modified the readerQuotas on the basicHttpBinding element of my web.config file, and I'm still receiving this error. Modifying the server's (where the web service I'm calling resides) is a no-go, since this issue isn't happening with any other clients using the service, and this is in an enterprise environment. I'm able to call this service outside of my own service, using the exact same content, with success. It's just when I'm calling my service which calls the email service that the error appears.</p>
  
  <p>Does anyone have any suggestions at all? I'm at a standstill, and am tired of bashing my head against this. My only thought right now is to modify the config file for the email service, but there's only one within the company and it's a production service, so that's nigh impossible just to test and see if this resolves my issue.</p>
  
  <p>Thanks,</p>
  
  <p>T.J.</p>
  
  <p>Edit: Relevant config sections</p>
  
  <p><strong>Client</strong></p>
  
  <pre><code>&lt;endpoint address="https://foo.domain/MailService.asmx"
      binding="basicHttpBinding" bindingConfiguration="MailServiceSoap"
      contract="MailService.MailServiceSoap" name="MailServiceSoap" /&gt;
  
  &lt;basicHttpBinding&gt;      
      &lt;binding name="MailServiceSoap"  maxReceivedMessageSize="2147483647"
          maxBufferSize="2147483647" openTimeout="00:10:00" receiveTimeout="00:10:00"
          sendTimeout="00:10:00" closeTimeout="00:10:00"&gt;
      &lt;readerQuotas maxDepth="2147483647" maxStringContentLength="2147483647"
          maxArrayLength="2147483647" maxBytesPerRead="2147483647"
          maxNameTableCharCount="2147483647" /&gt;
      &lt;security mode="Transport"&gt;
          &lt;transport clientCredentialType="None" proxyCredentialType="None" realm=""/&gt;
          &lt;message clientCredentialType="UserName" algorithmSuite="Default"/&gt;
      &lt;/security&gt;
      &lt;/binding&gt;
  &lt;/basicHttpBinding&gt;
  </code></pre>
  
  <p><strong>Server</strong></p>
  
  <p>Working on this still. I don't have any access to it.</p>