LabVIEW Unable to Find .NET Assembly System.dll

Updated Aug 30, 2018

Reported In

Software

  • LabVIEW

Issue Details

I am currently using LabVIEW 2012 and LabVIEW 2015. I recently installed the Replication and Deployment (RAD) Utility 16.0. When I try and run some code in LabVIEW 2012 (written in LabVIEW 2012) that calls the FileVersionInfo invoke node, LabVIEW is unable to find a file called System.dll. This code worked in the past on LabVIEW 2012. What changes did the RAD Utility make and what can I do to fix it?

Solution

This behavior is due to the differences in the .NET Framework that different versions of LabVIEW use. LabVIEW 2012 can use up to .NET Framework 3.5, and the RAD Utility 16.0 uses .NET Framework 4.6.1. When the RAD Utility is installed, it installs .NET Framework 4.6.1.

In order to get around this, you can do one of the following steps:

1. Remove and reinstall the Microsoft .NET Framework to a version compatible with LabVIEW 2012
2. Use VIs from the fileVersionInfo.llb which is located at the following location:
C:\Program Files (x86)\National Instruments\LabVIEW 2012\vi.lib\Platform\fileVersionInfo.llb

WAS THIS ARTICLE HELPFUL?

Not Helpful