maxItemsInObjectGraph limit required to be changed for server and client
Posted
by Michael Freidgeim
on Geeks with Blogs
See other posts from Geeks with Blogs
or by Michael Freidgeim
Published on Sun, 28 Oct 2012 11:02:09 GMT
Indexed on
2012/10/28
5:04 UTC
Read the original article
Hit count: 214
"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."
The MSDN article about dataContractSerializer xml configuration element correctly describes maxItemsInObjectGraph attribute default as 65536, but documentation for of the
DataContractSerializer.MaxItemsInObjectGraph property and DataContractJsonSerializer.MaxItemsInObjectGraph Property
are talking about Int32.MaxValue, which causes confusion, in particular because Google shows properties articles before configuration articles.
commonBehaviors
section which can be defined only in machine.config:<commonBehaviors>
<behaviors>
<endpointBehaviors>
<dataContractSerializer maxItemsInObjectGraph="..." />
</endpointBehaviors>
</behaviors>
</commonBehaviors>
v
© Geeks with Blogs or respective owner