We have a wcf service, that expects to return a huge XML data. It worked ok in testing, but in production it failed with error
"Maximum number of items that can be serialized or deserialized in an object graph is '65536'. Change the object graph or increase the MaxItemsInObjectGraph quota."
When we changed the value in WCF service configuration, it didn’t help, because the similar change must be ALSO done on client.
There are similar posts:
It seems that DataContractJsonSerializer.MaxItemsInObjectGraph has actual default 65536, because there is no configuration for JSON serializer, but it complains about the limit.