Author: mj08 | Posted on: 9/21/2008 11:31:54 AM | Views : 327

 Accessing WCF service from Ajax fails when i try to return large amounts of data

i'm trying to return an array of orders , when number of orders is under 3000 it works fine, for 3010 after that i get the error below by looking at the trace .

There was an error while trying to serialize parameter prototype.WcfServices:GetWcfOrdersResult. The InnerException message was '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. '.  Please see InnerException for more details.

 
i increased MaxItemsInObjectGraph  value and still getting same error
<dataContractSerializer maxItemsInObjectGraph Go to the complete details ...