yanivz

Deserialize PI AF objects

Discussion created by yanivz on Jan 9, 2013
Latest reply on Jan 10, 2013 by yanivz

Hi all

 

I'm writing C# application (.NET framework 3.5) using AF SDK 2.1.1.3624.

 

My application serialize/ deserialize AF objects (such as AFElement, AFReferenceType etc. ) as explained in AF SDK help link (http://msdn.microsoft.com/en-us/library/bcfsa90a). The only  difference between my application and the link's example is the object I serialize to/deserialize from. In my application the object is "MemoryStream" while in the example is  "Stream".

 

The serialize works fine while the deserialize fails. The error raised is: "The object with ID 2 implements the IObjectReference interface for which all dependencies cannot be resolved. The likely cause is two instances of IObjectReference that have a mutual dependency on each other."

 

Can anyone please tell the solution this issue?

 

Regards

 

 

 

Itsik

Outcomes