LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

LabVIEW not able to load .Net assembly dynamically

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

0 Kudos
Message 1 of 5
(3,465 Views)
You said the assemblies are located in a different folder. How does your assembly find these other assemblies?
Jarrod S.
National Instruments
0 Kudos
Message 2 of 5
(3,459 Views)

Hi,

 

My .Net assembly internally uses a default path to load the other assemblies dynamically.

 

 

Thanks

Selva

0 Kudos
Message 3 of 5
(3,457 Views)
Is that default path based on where the assembly itself is? Are they expected to be relative to each other?
Jarrod S.
National Instruments
0 Kudos
Message 4 of 5
(3,448 Views)

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

0 Kudos
Message 5 of 5
(3,436 Views)