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
Comments
0 comments
Please sign in to leave a comment.