Error When Calling a .NET System.IO Object From LabVIEW Constructor Node

Updated Apr 2, 2020

Reported In

Software

  • LabVIEW

Programming Language

  • Visual Basic .NET

Issue Details

I am trying to call the classes within the .NET System.IO assembly within my LabVIEW project. However, when I select the System.IO assembly, I get an error that reads:
This assembly contains no public classes that can be created
How can I call these objects in LabVIEW?

Solution

The contents of the System.IO namespace are part of the mscorlib library (Microsoft Core Object Runtime Library). As such, these can be found by setting mscorlib as the Assembly, and then selecting the expanding the System.IO section and then selecting the desired object.