AVEVA Global WCF Configuration Guide
Trouble Shooting
: Massive Base Product Projects
Massive Base Product Projects
Error description:
In some situations the below error can occur while working with massive base product projects with a large number of databases (of more than 5000).
"Failed send Reply to HUB: There was an error while trying to serialize parameter http://tempuri.org/:results. 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 '."
Solution:
Double the quota for the
MaxItemsInObjectGraph
attribute. Refer to the table for suggested values. The minimum size for this attribute is 64KB (65536 bytes) and Maximum allowed value is 2 GB (2147483647 bytes).
<
behaviors
>
<
endpointBehaviors
>
<
behavior
name
="
ValidationBehavior
"
>
<
dataContractSerializer
maxItemsInObjectGraph
="
1048576
"
/>
<
validation
enabled
="
true
"
ruleset
="
RuleSetA
"
/>
</
behavior
>
</
endpointBehaviors
>
<
serviceBehaviors
>
<
behavior
name
="
GlobalWcfServiceBehavior
"
>
<
dataContractSerializer
maxItemsInObjectGraph
="
1048576
"
/>
<
serviceMetadata
httpGetEnabled
="
true
"
/>
<
serviceDebug
includeExceptionDetailInFaults
="
true
"
/>
</
behavior
>
</
serviceBehaviors
>
</
behaviors
>
The endpoint behaviour for DataContractSerializer is also required in GlobalWcfClient.config as well as in admindWCF.exe.config. For other settings which may also need increasing, refer to
Buffer Too Small
for further information.
1974 to current year.
AVEVA Solutions Limited and its subsidiaries. All rights reserved.