LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

.NET assembly, an error occurred trying to load the assembly

Hello,

 

I developing an application using a . NET dll. I am sure that is a .NET library that should work with Labview but when trying to load the assembly, the message  "an error occurred trying to load the assembly" appears.

I didn't found anythink that could help me on help or on the forum.

Does anyone how to cure this error ?

 

 

0 Kudos
Message 1 of 3
(3,878 Views)

Hello, Could you import your dll?

 

Please respond on this thread :

 

 

Duplicate

 

Regards

Samuel G. | GEMESIS

Certified LabVIEW Architect

Certified TestStand Developer

GEMESIS.EU

0 Kudos
Message 2 of 3
(3,799 Views)

I just wanted to post my solution for this. May not fix the above issue.

 

I started a blank vi and dropped in the constructor and loaded the DLL .net file. Seemed to work fine and off i went testing the .net library.

 

Then i recieved a new version of the DLL and when i replaced files i started getting the above error " an error occurred trying to load the assembly". Even when i tried going back to the version that worked i recieved the same error.

 

After searching around i found one note from NI stating they strongley suggest using a project when using .net DLL's. So i created a project dropped my test vi in. loaded the .net constructor and DLL and everything worked again. So im not sure why a vi by itself broke as soon as the DLL changed and a project does not care but that fixed my error. Hope this helps someone.

- A minute saved is a Minute earned!
0 Kudos
Message 3 of 3
(3,717 Views)