LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Labview 8.5 and dotNet 2.0 : Unable to load assemblies ...

Hi,

We are trying to upgrade a labview application written with 8.0/8.2 version to Labview 8.5.
Our application creates dotNet 2.0 objects and call dotNet methods.

Our program works fine in Labview 8.0/8.2  Smiley Happy but with Labview 8.5 the Vi's are "Brocken"Smiley Mad. There is an error
on the constructor node. When we try to re-create the dotNet constructor, Labview is unable to load our dotNet 2.0 assembly.

We have mave the same test with microsoft dotnet standard assemblies ( system.windows.forms ), and it works fine !

Do you have some informations about this kind of errors ??? Smiley Sad

Thank you for help
0 Kudos
Message 1 of 5
(3,824 Views)
Some more informations about my problem ...

I tried to create a small dotNet class library DLL containing 1 class .... and i tried to call
it from Labview 8.5 .... and it works ???? I tried to create a second assembly calling the
previous one ... it works too !

The NI french support tried to load my big class ( which don't work on LV 8.5 )  with labview 8.2.1 english version, and they get the same error "unable to load the assembly" !
I tried the same with Labview 8.2.0 english version and it works !

Why do my big dotnet assembly had a problem whereas a small assembly works fine ???

Is it possible to know why the assembly cannot be loaded by Labview 8.5 ?? In fact Labview 8.5 only says
that it can't load the assembly content without more explainations !!!! Is it possible to get the complete error message somewhere ???

Thank you for your help !!! Smiley Sad
0 Kudos
Message 2 of 5
(3,823 Views)

Hello Eler,

I'm the AE from the french support who tested your class.

I tested your big class with different version of LabVIEW and with all the versions, I had the error.

I tested with LV8.5.1 french, LV 8.2.1 french and english, LV8.2 french and english,LV7.1 fench.

For me with LV 8.2.0 english version your class doesn't work.

I attached screen shots for all tests.

Regards  

VéroniqueD
NI France
Message 3 of 5
(3,801 Views)
Hi,

Pierre Roth has made some more tests about our problem ....

By reparaing/reinstalling the dotNet framework 2.0, the problem seems to change !!!

  • Some classes are now visible ... but theires constructors not ...
  • and the initial problem is still here on some other  assemblies.

Is there a dot net assembly confict somewhere ?

Is is possible to get the inner exception which occurs when Labview tries to load a dot net assembly ????

Thanks a lot for your help !

Manu.
0 Kudos
Message 4 of 5
(3,787 Views)
Hello,
It seems that our problem is described and explained in this thread by Jonathan D, a LV R&D guy.
It seems that since LV 8.5 few things have changed in the way of .NET assemnlies call in LV. And that now we have to create a project to call LV VIs that called .NET assemblies.
It's true that this concept is in the mind of .NET CLR, but in our case, this change of behaviour not really a good thing. That because we are used to call VIs by reference without project and  it was working until now. We have two workarounds for our case : using LV Project or doing the same thing without .NET call in our VI !!!
Best regards thanks for your help
Pierre R...

Certified LabVIEW Developer
Message 5 of 5
(3,765 Views)