Error Inserting ActiveX or .NET Object. The System Cannot Find the File Specified

Updated Aug 22, 2023

Reported In

Software

  • LabVIEW 2016 Full
  • LabVIEW 2017 Full

Issue Details

I am using a .NET container to place a custom control on the front panel. Whenever I  try to connect the container to my control I get the error: 

Error inserting ActiveX or .NET object: Error creating instance of <dll name> in assembly


Solution

Save your VI in a LabVIEW Project​
  1. File >> Create Project >> Blank Project >> Finish
  2. click Add to include the current VI in the new project
  3. Reattempt to connect the .NET container

Additional Information

  • NI strongly recommends only using .NET objects in the context of a LabVIEW project.
  • It is also recommended to check references to older versions of the DLL in the project since this could cause conflicts and show up this type of error.