user2323304
user2323304

Reputation: 11

The formatter threw an exception while trying to deserialize the message

The formatter threw an exception while trying to deserialize the message: Error in deserializing body of request message for operation 'PostTransaction'. 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 52

Upvotes: 1

Views: 5967

Answers (1)

evgenyl
evgenyl

Reputation: 8117

You need add this argument to your config, like

<bindings> <webHttpBinding> <binding> <readerQuotas maxStringContentLength="65535"/> </binding> </webHttpBinding> </bindings>

Exaple from this answer: Fixing maximum length quota on XmlDictionaryReaderQuotas for WCF 4.0 REST

Upvotes: 1

Related Questions