Imagine you have a Windows Communication Foundation (WCF) Service running framework version 3.0 or 3.5 using binary encoding and streamed transfer mode. You provide quota information for MaxBytesPerReady and you may receive the following error when receiving data of a specific size:
"Error in deserializing body of reply message for operation '<operation-name>'. The 'maximum bytes per Read operation' quota (<quota-value>) has been exceeded while reading XML data. Long element start tags (consisting of the element name, attribute names and attribute values) may trigger this quota. This quota may be increased by changing the MaxBytesPerRead property on the XmlDictionaryReaderQuotas object used when creating the XML reader."
Larger and smaller amount of data will process without errors and only a few combinations will fail. If you change MaxBytesPerRead quotas you will succeed with the values you have failed initially and fail with different data sizes.
You cannot reproduce this problem using an encoding that is not binary or if the transfer mode is buffered.
"Error in deserializing body of reply message for operation '<operation-name>'. The 'maximum bytes per Read operation' quota (<quota-value>) has been exceeded while reading XML data. Long element start tags (consisting of the element name, attribute names and attribute values) may trigger this quota. This quota may be increased by changing the MaxBytesPerRead property on the XmlDictionaryReaderQuotas object used when creating the XML reader."
Larger and smaller amount of data will process without errors and only a few combinations will fail. If you change MaxBytesPerRead quotas you will succeed with the values you have failed initially and fail with different data sizes.
You cannot reproduce this problem using an encoding that is not binary or if the transfer mode is buffered.