Hi all,
I have a page (containing a JS control add-in). When I run the page directly from the dev client and just add a hard-coded GET to the OnOpenPage(), everything works just fine. Data is displayed and user interaction works. But when I run the same page from code in another page (of the same record type), the RTC loses connection to the service and crashes:
MyPage.SETRECORD(Rec);
MyPage.RUNMODAL; (client crashes when reaching this line in the debugger)
My event viewer says the following:
Error MicrosoftDynamicsNavServer$DynamicsNAV90
Type: System.Runtime.Serialization.SerializationException
Message: Maximum number of items that can be serialized or deserialized in an object graph is '512000'. Change the object graph or increase the MaxItemsInObjectGraph quota.
StackTrace:
at System.Runtime.Serialization.XmlObjectSerializerContext.IncrementItemCount(Int32 count)
at WriteArrayOfunsignedByteToXml(XmlWriterDelegator , Object , XmlObjectSerializerWriteContext , CollectionDataContract )
at System.Runtime.Serialization.CollectionDataContract.WriteXmlValue(XmlWriterDelegator xmlWriter, Object obj, XmlObjectSerializerWriteContext context)
at System.Runtime.Serialization.XmlObjectSerializerWriteContext.WriteDataContractValue(DataContract dataContract, XmlWriterDelegator xmlWriter, Object obj, RuntimeTypeHandle declaredTypeHandle)........
Any ideas?
I have a page (containing a JS control add-in). When I run the page directly from the dev client and just add a hard-coded GET to the OnOpenPage(), everything works just fine. Data is displayed and user interaction works. But when I run the same page from code in another page (of the same record type), the RTC loses connection to the service and crashes:
MyPage.SETRECORD(Rec);
MyPage.RUNMODAL; (client crashes when reaching this line in the debugger)
My event viewer says the following:
Error MicrosoftDynamicsNavServer$DynamicsNAV90
Type: System.Runtime.Serialization.SerializationException
Message: Maximum number of items that can be serialized or deserialized in an object graph is '512000'. Change the object graph or increase the MaxItemsInObjectGraph quota.
StackTrace:
at System.Runtime.Serialization.XmlObjectSerializerContext.IncrementItemCount(Int32 count)
at WriteArrayOfunsignedByteToXml(XmlWriterDelegator , Object , XmlObjectSerializerWriteContext , CollectionDataContract )
at System.Runtime.Serialization.CollectionDataContract.WriteXmlValue(XmlWriterDelegator xmlWriter, Object obj, XmlObjectSerializerWriteContext context)
at System.Runtime.Serialization.XmlObjectSerializerWriteContext.WriteDataContractValue(DataContract dataContract, XmlWriterDelegator xmlWriter, Object obj, RuntimeTypeHandle declaredTypeHandle)........
Any ideas?