In the WCF 4.0 service, we get a huge amount of data in the general list. This graph of the list of objects is larger than the default limit of 65536. We are pretty used to it, so we configured the service to get these large graphs.
<serviceBehaviors> <behavior> <dataContractSerializer maxItemsInObjectGraph="2147483647" /> </behavior> </serviceBehaviors>
With the above piece of xml config, we avoided the problem in the past without any problems, but now it will not work. The only difference is that here we use KnownTypes in the huge list items that we are trying to deserialize in the WCF method.
Maybe I missed some special configuration for known types?
source share