Main Menu

All times are in GMT -8 (DST) :: The time is now 1:25 am.

Login or Register
Create an account and register your LMI products to gain access to useful resources.

Register Account

Login

Sub Menu

Knowledge Base
Article Data
Article Ref
2634-WUGC-9651
Date Created
Mon, 5th Nov 2018
Date Modified
Mon, 10th Jun 2019

   LabVIEW™ throwing errors

Question 

I'm trying to update my .NET DLL. Why is LabVIEW™ throwing this error: “an error occurred trying to load the assembly”?

 

Answer 

LabVIEW™ is likely throwing the error due to its default security configuration for .NET assemblies.

 

In order to get around this, create a file in the folder containing the LabVIEW™ executable, name it “LabVIEW.exe.config” and add the following to the file:

 

<?xml version ="1.0"?>
<configuration>
  <runtime>
    <loadFromRemoteSources enabled="true" />
  </runtime>
</configuration>

 

Restart LabVIEW™, compile the entire project, and run the program.

 

If the issue persists, submit a support ticket.

 

Source: https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z000000P8XnSAK