How To Fix "The maximum string content length quota (8192) has been exceeded while reading XML data." error when calling WCF



TODO:

How to fix the error "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"

 

SOLUTION:

1.  Open your web.config. 

2.  Look for the binding entry for your Service. (<basicHttpBinding><binding name=...)

3.  Replace the value in the attribute maxStringContentLength="8192" with "2147483647"

 

NOTES:

There are no notes on this topic.



Add comment

  Country flag

biuquote
  • Comment
  • Preview
Loading