Wednesday, March 24, 2010

WCF: Error in deserializing body of reply message


You got an error "Error in deserializing body of reply message" when calling WCF service.


If your response message size is huge then check the reader quota settings in client app/web.config-file at bindings section and change them. For example:

<readerQuotas maxDepth="2147483647" maxStringContentLength="2147483647" maxArrayLength="2147483647" maxBytesPerRead="2147483647" maxNameTableCharCount="2147483647"/>

Note that you must have same binding, which settings you are changing, in server side also!

More about reader quota:

No comments:

Post a Comment