I get the below 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.
even though i have set the MaxItemsInObjectGraph on the client and server using the following code
Can any one make any suggestions?
foreach (OperationDescription op in _hostServices.Description.Endpoints[0].Contract.Operations) {
op.Behaviors.Find<DataContractSerializerOperationBehavior>().MaxItemsInObjectGraph = 2147483647; }ServiceBehaviorAttribute)_hostServices.Description.Behaviors[0]).MaxItemsInObjectGraph = 2147483647;
return _hostServices;
((