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.

Recently i got error on my WCF service. which is something like “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.”

The error says clearly that it has not able to read more than 8192 string length. WCF service by default set 8192 string length for security to prevent not submit more data. But, in my case i need more data to send. so, i have set following things in my bindings and all done.




maxStringContentLength is set length and solve the problem.

Hope it will help you other also..