Unable to pass .NET object from C\AL

VyacheslavVyacheslav Member Posts: 5
edited 2013-12-22 in NAV Three Tier
I have a dotnet variable of type System.Xml.XmlDocument in C\AL. When I try to call a method of another .NET variable that has parameter of the same type (System.Xml.XmlDocument ) it fails with the following message:

"Cannot serialize an instance of the following NET Framework object: assembly System.Xml, Version=4.O.O.O, Culture=neutral, PublicKeyToken=b77a5c561934e089, type System.Xml.XmlDocument."

Code looks like following:
xmlDoc1 = xmlDoc1.XmlDocument(); // instantiate variable
// building xml data


  • Options
    JuhaJuha Member Posts: 39
    Are both variables set to the same side? You get this error if you assign a server-side object to a client-side object and vice versa.

  • Options
    VyacheslavVyacheslav Member Posts: 5
    Thank you, issue resolved.
Sign In or Register to comment.