LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

CDotNetLoadAssembly returns -6579 error code

I wrote a C# dll and I am calling it in LabWindows/CVI dll by creating .NET Controller.  When I try to run the LabWindows/CVI code via Function Panel, I get the following error:

"NON-FATAL RUN-TIME ERROR

Function CDotNetLoadAssembly: (return value == -6579[0xffffe64d])
The LabWindows/CV .NET library could not load the specified assembly"

I put C# dll in the folder where I am running my LabWindows\CVI dll.

I am using LabWindows/CVI version 8.0.1. C# dll is written in MS Visual Studio 2003.

Can anybody help?


0 Kudos
Message 1 of 3
(5,124 Views)
You should put the assembly (.NET DLL) in the same folder as the process (EXE), and not the calling CVI DLL. Alternatively, you could put the assembly any where and first call CDotNetRegisterAssemblyPath and pass the full path to the assembly before calling CDotNetLoadAssembly.
Message 2 of 3
(5,107 Views)
Hi Appu,

I'm not sure why you're seeing that error when calling it with the .NET Controller. Did you add the dll to your project in CVI? You may also consult the information found here as well as '.NET Library, assembly dependencies' in the Index of the CVI Help.
Test Engineer - CTA
0 Kudos
Message 3 of 3
(5,105 Views)