title: WCF - Win App “The maximum string content length quota (8192) has been exceeded while reading XML data.”
body: <p>I am having some problem while implementing Web Service through WCF. While I m passing value in WCF method from client application as a string (xml), getting error</p>
  
  <blockquote>
    <p>The formatter threw an exception
    while trying to deserialize the
    message: There was an error while
    trying to deserialize parameter
    <a href="http://tempuri.org/:XmlEntity" rel="noreferrer">http://tempuri.org/:XmlEntity</a>.</p>
  </blockquote>
  
  <p>The <code>InnerException</code> message was </p>
  
  <blockquote>
    <p>'There was an error deserializing the
    object of type System.String. 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
    249, position 19.'.</p>
  </blockquote>
  
  <p>I have tried to change the value of maxStringContentLength in client web.configuration file but error is remains same. Kindly try to find out the solution asap.</p>