I'm getting the exception:
"Maximum number of items that can be serialized or deserialized in an object graph is '65536'"
on two (Staging, and Production) out of three servers, and I can't think why there is an issue.
Since it works on the Test server [IIS7.5 w2k8r2] I feel I can rule out the website's web.config.
I've gathered up the machine.config, and the webservers's web.configs, and compared them, and I can't see any issue.
Could there be configuration settings from some where else?
Edit:
This is the relevant part of the config file:
</system.webServer>
<system.serviceModel>
<behaviors>
<endpointBehaviors>
<behavior name="TheEndPointBehaviour">
<dataContractSerializer maxItemsInObjectGraph="6553600" />
</behavior>
</endpointBehaviors>
</behaviors>
<bindings>
<basicHttpBinding>
<binding name="TheEndPoint" maxReceivedMessageSize="6553600" />
</basicHttpBinding>
</bindings>
<client>
<endpoint address="http://ipaddress/folder/service.svc"
binding="basicHttpBinding" bindingConfiguration="TheEndPoint"
contract="Reference.IService" name="TheEndPoint" />
</client>
The developer used 6553600, however I have upped this to 2147483647 and that does not work.