title: WCF - The maximum nametable character count quota (16384) has been exceeded while reading XML data
body: <p>I'm having a WCF Service that uses wsHttpBinding. The server configuration is as follows :</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;bindings&gt;
        &lt;wsHttpBinding&gt;
          &lt;binding name="wsHttpBinding" maxBufferPoolSize="2147483647"
            maxReceivedMessageSize="2147483647"&gt;
            &lt;readerQuotas maxDepth="2147483647" maxStringContentLength="2147483647"
              maxArrayLength="2147483647" maxBytesPerRead="2147483647" maxNameTableCharCount="2147483647" /&gt;
            &lt;security mode="None"&gt;
              &lt;transport clientCredentialType="Windows" proxyCredentialType="None"
                realm="" /&gt;
              &lt;message clientCredentialType="Windows" negotiateServiceCredential="true"
                algorithmSuite="Default" establishSecurityContext="true" /&gt;
            &lt;/security&gt;
          &lt;/binding&gt;
        &lt;/wsHttpBinding&gt;
      &lt;/bindings&gt;
  </code></pre>
  
  <p>At the client side I'm including the Service reference of the WCF-Service. It works great if I have limited functions say 90 Operation Contract in my IService but if add one more OperationContract than I'm unable to Update the Service reference nor i'm able to add that service reference. In <a href="http://www.lazarciuc.ro/ioan/2009/05/28/wcf-contract-limits/" rel="noreferrer">this</a> article it's mentioned that by changing those config files(i.e devenv.exe.config, WcfTestClient.exe.config and SvcUtil.exe.config) it will work but even including those bindings in those config files still that error pops up saying </p>
  
  <p>There was an error downloading '<a href="http://10.0.3.112/MyService/Service1.svc/mex" rel="noreferrer">http://10.0.3.112/MyService/Service1.svc/mex</a>'.
  The request failed with HTTP status 400: Bad Request.
  Metadata contains a reference that cannot be resolved: '<a href="http://10.0.3.112/MyService/Service1.svc/mex" rel="noreferrer">http://10.0.3.112/MyService/Service1.svc/mex</a>'.
  There is an error in XML document (1, 89549).
  The maximum nametable character count quota (16384) has been exceeded while reading XML data. The nametable is a data structure used to store strings encountered during XML processing - long XML documents with non-repeating element names, attribute names and attribute values may trigger this quota. This quota may be increased by changing the MaxNameTableCharCount property on the XmlDictionaryReaderQuotas object used when creating the XML reader. Line 1, position 89549.
  If the service is defined in the current solution, try building the solution and adding the service reference again.</p>
  
  <p>Any idea how to solve this????</p>