web
You’re offline. This is a read only version of the page.
close
Skip to main content
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

I have the same question (0)
  • Suggested answer
    RockwithNav Profile Picture
    7,980 Super User 2025 Season 2 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
    49,257 Super User 2025 Season 2 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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Andrés Arias – Community Spotlight

We are honored to recognize Andrés Arias as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics NAV (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans