title: WCF MaxStringContentLength error
body: <p>I making simple WCF service
  Server Side running on iis
   Client WinForms.</p>
  
  <p>When I trying to send big string to server i have following exception:</p>
  
  <blockquote>
    <p>The formatter threw an exception while trying to deserialize the
    message: Error in deserializing body of request message for operation
    'CreateFolder'. The maximum string content length quota (8192) has
    been exceeded while reading XML data. This quota may be increased by
    changing the MaxStringContentLength property on the
    XmlDictionaryReaderQuotas object used when creating the XML reader.
    Line 147, position 78.</p>
  </blockquote>
  
  <p>client app.config:</p>
  
  <pre><code>&lt;configuration&gt;
    &lt;system.serviceModel&gt;
      &lt;bindings&gt;
        &lt;basicHttpBinding&gt;
          &lt;binding name="BasicHttpBinding_IService1" maxReceivedMessageSize="10000000" &gt;
            &lt;readerQuotas maxDepth="32" maxStringContentLength="10000000"   maxArrayLength="16384"
                      maxBytesPerRead="4096" maxNameTableCharCount="16384" /&gt;
          &lt;/binding&gt;
        &lt;/basicHttpBinding&gt;
      &lt;/bindings&gt;
      &lt;client&gt;
        &lt;endpoint address="http://192.168.15.72:7777/Service1.svc" binding="basicHttpBinding"
          bindingConfiguration="BasicHttpBinding_IService1" contract="ServiceReference1.IService1"
          name="BasicHttpBinding_IService1" /&gt;
      &lt;/client&gt;
    &lt;/system.serviceModel&gt;
  &lt;/configuration&gt;
  </code></pre>
  
  <p>Server Web config:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;configuration&gt;
  
    &lt;system.web&gt;
      &lt;compilation debug="true" targetFramework="4.0" /&gt;
    &lt;/system.web&gt;
    &lt;system.serviceModel&gt;
      &lt;bindings&gt;
        &lt;basicHttpBinding&gt;
          &lt;binding name="BasicHttpBinding_IService1" maxReceivedMessageSize="10000000"
          maxBufferSize="10000000" &gt;
            &lt;readerQuotas maxDepth="32" maxStringContentLength="10000000"   maxArrayLength="16384"
                       maxBytesPerRead="4096" maxNameTableCharCount="16384" /&gt;
          &lt;/binding&gt;
        &lt;/basicHttpBinding&gt;
      &lt;/bindings&gt;
      &lt;services&gt;
        &lt;service name="WCFService"&gt;
          &lt;endpoint address="" binding="basicHttpBinding"
            bindingConfiguration="BasicHttpBinding_IService1" contract="ServiceReference1.IService1"
            name="BasicHttpBinding_IService1"&gt;
          &lt;/endpoint&gt;
        &lt;/service&gt;
      &lt;/services&gt;
      &lt;behaviors&gt;
        &lt;serviceBehaviors&gt;
          &lt;behavior&gt;
            &lt;serviceMetadata httpGetEnabled="true"/&gt;
            &lt;serviceDebug includeExceptionDetailInFaults="false"/&gt;
          &lt;/behavior&gt;
        &lt;/serviceBehaviors&gt;
      &lt;/behaviors&gt;
  
      &lt;serviceHostingEnvironment multipleSiteBindingsEnabled="true" /&gt;
    &lt;/system.serviceModel&gt;
    &lt;appSettings&gt;
      &lt;add key="PathToSafe" value="D:\Temp"/&gt;
    &lt;/appSettings&gt;
   &lt;system.webServer&gt;
      &lt;modules runAllManagedModulesForAllRequests="true"/&gt;
    &lt;/system.webServer&gt;
  
  &lt;/configuration&gt;
  </code></pre>
  
  <p>When i run server on localhost iis it works great.
  Any ideas how to solve this?</p>