Why Doesnt My .NET-Container Work in a LabVIEW Executable?

Updated Oct 17, 2019

Reported In

Software

  • LabVIEW

Other

  • .NET

Issue Details

I'm using a .NET-container frontpanel element in my LabVIEW application. In development environment it works fine, but when built to an executable the .NET-terminal returns an invalid reference which causes errors.

Solution

One reason for this could be that you are using the Reset all Frontpanel Values to Default method.

This method may cause the .NET Container to become invalid in the executable. To prevent this error do not use the method, and choose a different way of initialization instead.

Additional Information

You can use the attached SubVI to Reinitialize every frontpanel element except ActiveX- and .NET-Containers.