11-20-2009 07:46 AM
Hi,
I am using LabVIEW 8.5. My LabVIEW vi acts as a client application to call my functions and properties of my .Net Dlls. In my .Net Dll, I written code to load dynamically some of the other .Net assembles(located in different folder) using reflection. But when i call that function in LabVIEW, it is not able to load the DLL dynamically. But the same call works well with .Net client application. Can you please help me out with this issue?
Thanks
Selva
11-20-2009 08:09 AM
11-20-2009 08:11 AM
Hi,
My .Net assembly internally uses a default path to load the other assemblies dynamically.
Thanks
Selva
11-20-2009 08:29 AM
11-20-2009 09:50 PM
Yes. The Default path is where the other assemblies exists. say for eg. I have a two assemblies. One named A.dll in location D:\Assembly\A.dll, other B.dll in E:\Assembly\B.dll.(Both in different location). A function in .Net code of A.dll is dynamically loading B.dll using reflection. Now I am using Constructor node to create object of A.dll in my LabVIEW code, and then using Invoke node to call the function which is loading B.dll. This execution in the LabVIEW Couldnt able to load the B.dll. But If i copy the B.dll from E:\Assembly\B.dll to the location D:\Assembly, then it is able to load.
Thanks
Selva