Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics NAV (Archived)

Using System.XML Version 2.00 vs System.XML Version 4.00

(0) ShareShare
ReportReport
Posted on by

Dynamics Community,

I've been searching for information about the differences in using the .NET Variable System.XML version 2.00 vs version 4.00 and which variable version is compatible with what .NET Framework Version.  This info has come to our attention because we were having a lot of issues consuming web services in a Dynamics NAV 2013 R2, Windows 7, .NET Framework 4.6.1 enviroment. 

The main issue presented was that we were having the following error A call to System.Xml.XPathNodeList.SelectSingleNode failed.... on that enviroment.  The same codeunit was working fine in an enviroment with .NET Framework 4.5.  In both enviroments we where using the .NET Variable System.XML Version 2.00 then we found out that there was a newer version of that System.XML variable (v. 4.00) so we made the switch on the codeunit running on the .NET Framework 4.6.1 and the errors disappeared. 

Is there any documentation on any bugs or when to use the version 2.00 vs 4.00?

*This post is locked for comments

  • Verified answer
    RockwithNav Profile Picture
    6,733 on at
    RE: Using System.XML Version 2.00 vs System.XML Version 4.00

    Marcelo,

    Actually you will never find these kind of documentation anywhere because you have just mentioned a single Dotnet variable here but if you will do a lookup you will find a a bunch of Assemblies then Namespaces followed by Classes in NAV and if Microsoft go on documenting all these then I believe that will be a new Project for them altogether. :)

    So its always recommended to use the latest versions of whatever DLL'S you are using, eventually your all needs will be fulfilled followed by you will find  many new methods  added.

  • Verified answer
    Zaid Tariq Profile Picture
    2,274 on at
    RE: Using System.XML Version 2.00 vs System.XML Version 4.00

    Hi,
    There is always recommend to use the .Net framework which is most compatible(mostly latest) with the .Net version of NAV Server running on.

  • Verified answer
    Suresh Kulla Profile Picture
    47,773 on at
    RE: Using System.XML Version 2.00 vs System.XML Version 4.00

    There is not specific documentation to specify the differences especically at namespace or class level. I just recommend to use the latest framework that comes with the installation.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

Kudos to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Microsoft Dynamics NAV (Archived)

Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans