11-20-2012 04:38 AM
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 ?
12-07-2012 04:40 AM
Hello, Could you import your dll?
Please respond on this thread :
Regards
Samuel G. | GEMESIS
Certified LabVIEW Architect
Certified TestStand Developer
02-20-2013 06:41 PM
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.