This question is locked. New answers and comments are not allowed.
Hi,
We are using Telerik OpenAccess disconnected API for our application, with WCF. Even though it managed to retrieve objects from database at server site and client site received changeset exactly the same length from server site, we encountered the following error when we load changeset to objectcontainer. It doesn't happen on all module but we can't fix this on a module, no matter what. The object graph contains 3, 4 level of object composition. The only exception is if we don't have any data in database for child object. it works.
Could you please help us to define problem and get soluction?
"System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. --->
System.TypeLoadException: Type "ANameSpace.Atype' could not be found.
at Telerik.OpenAccess.RT.TypeResolver.AssociateTypeName(String dotnetname, Boolean complain)
at Telerik.OpenAccess.RT.TypeResolver.ResolveTypeName(String dotnetname, Boolean complain)
at Telerik.OpenAccess.RT.DisconnectedStateManager..ctor(SerializationInfo info, StreamingContext context)
--- End of inner exception stack trace ---
at System.RuntimeMethodHandle._SerializationInvoke(Object target, SignatureStruct& declaringTypeSig, SerializationInfo info, StreamingContext context)
at System.Reflection.RuntimeConstructorInfo.SerializationInvoke(Object target, SerializationInfo info, StreamingContext context)
at System.Runtime.Serialization.ObjectManager.CompleteISerializableObject(Object obj, SerializationInfo info, StreamingContext context)
at System.Runtime.Serialization.ObjectManager.FixupSpecialObject(ObjectHolder holder)
at System.Runtime.Serialization.ObjectManager.DoFixups()
at System.Runtime.Serialization.Formatters.Binary.ObjectReader.Deserialize(HeaderHandler handler, __BinaryParser serParser, Boolean fCheck, Boolean isCrossAppDomain, IMethodCallMessage methodCallMessage)
at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize(Stream serializationStream, HeaderHandler handler, Boolean fCheck, Boolean isCrossAppDomain, IMethodCallMessage methodCallMessage)
at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize(Stream serializationStream)
at Telerik.OpenAccess.ObjectContainer.Unwrap(ChangeSet cs)
at Telerik.OpenAccess.ObjectContainer.Apply(ChangeSet changes)
Regards,
Han