Monday, August 16, 2010

Long Web Service String Parameters (As For XML Strings) Too Long

While testing a web service client which was calling a method which returned a string value (intended to contain XML), I got the following 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.

I was able to get around this by changing my app.config file's entry for the binding as, well, described in the error message (from 8192 to 819200):














No comments:

Post a Comment