Troubleshooting / I Have a Problem with AgilePoint Performance |
In an AgilePoint Windows Service environment, when AgilePoint Server returns a large amount of data - for example, large number of registered users - the following error appears:
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.
This error occurs when the number of current items exceeds the maximum limit of number of items that can be serialized or deserialized in an object graph.
To resolve the issue, make the changes in the configuration files for both the server and the client:
<dataContractSerializer maxItemsInObjectGraph="2147483646" />
The following example displays a portion of the Ascentn.AgilePoint.WCFService.exe.config file:
<system.serviceModel> <behaviors> <serviceBehaviors> <behavior name="AgilePointServiceBehavior"> <!-- To avoid disclosing metadata information, set the value below to false and remove the metadata endpoint above before deployment --> <serviceMetadata httpGetEnabled="true" /> <!-- To receive exception details in faults for debugging purposes, set the value below to true. Set to false before deployment to avoid disclosing exception information --> <serviceDebug includeExceptionDetailInFaults="true" /> <dataContractSerializer maxItemsInObjectGraph="2147483646" /> </behavior>
<behaviors> <endpointBehaviors> <behavior name="Behaviors.ClientBehavior"> <dataContractSerializer maxItemsInObjectGraph="2147483646" /> </behavior> </endpointBehaviors> </behaviors>
The following example displays a portion of the Enterprise Manager web.config file:
<system.serviceModel> <behaviors> <endpointBehaviors> <behavior name="Behaviors.ClientBehavior"> <dataContractSerializer maxItemsInObjectGraph="2147483646" /> </behavior> </endpointBehaviors> </behaviors>
behaviorConfiguration="Behaviors.ClientBehavior"
The following example displays a portion of the Enterprise Manager web.config file:
<endpoint address="http://demo3:80/AgilePointServer/Workflow" binding="wsHttpBinding" behaviorConfiguration="Behaviors.ClientBehavior" bindingConfiguration="WSHttpBinding_IWCFWorkflowService" contract="WorkflowService.IWCFWorkflowService" name="WSHttpBinding_IWCFWorkflowService">