07-12-2012 02:16 AM
Hi all,
I have a problem with the using of an .NET assembly. The key facts:
I have a own written C# DLL (let's call it my.dll) which references to a third party .NET DLL (thirdparty.dll). The thirdparty.dll is a .NET wrapper to a Win32-DLL of the same company, it contains a lot of drivers for controlling some HW.
I have added my.dll to a VI and started to use it. Everything works fine. But when I restart LabVIEW, load and run my VI, the thirdparty.dll gives back an error message (to my.dll) that it is not finding its Win32-DLL. If I rebind my.dll in its constructor-knot everything works again, the thirdparty.dll accesses its Win32-DLL again.
But that's no practicable solution. Is there any possibility to solve this problem??
If you need further information, please ask!
Thanks a lot in advance...
Regards
Benny
07-12-2012 07:37 AM
You did not indicate what LabVIEW version you are using.
You did not indicate what .NET version you are using. If it's 4.0, be aware that this version is not "officially" supported, so some things may not work right.
Also, are you aware of the way the .NET runtime locates assemblies?