LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

c# DLL in labview 8.6 runtime newer than the curruntly loaded

Solved!
Go to solution

HELLO every one!

 

I have spent a week looking for a solution , but i didn't find any usefull help, so this is the problem : i'm trying to use a c# DLL in LAbview when i

Place a .NET “Constructor Node” on the block diagram a menu is presented and the following error message appears:this assembly is built by a runtime newer than the curruntly loaded. i've attached a screen shot of the message.

 

any help would be welcome, i'm really out of ideas!!

 

Best Regrds,

0 Kudos
Message 1 of 5
(2,900 Views)

Your .Net DLL was built in .Net 4 and LabVIEW does not support .Net 4 out of the box. There is a knowledgebase article about how to place a manifest file in the LabVIEW folder to convince Windows to load the .Net 4 runtime anyhow with LabVIEW. It should work, but there are no guarantees that this could not cause some trouble because of incompatibilities between earlier .Net versions and .Net 4.

 

Another solution if you have the source of the .Net DLL is to build it to use an older .Net version. Then LabVIEW won't have any troubles to load your assembly.

Rolf Kalbermatter  My Blog
DEMO, Electronic and Mechanical Support department, room 36.LB00.390
Message 2 of 5
(2,893 Views)

hello rolfk ,

 

Thank you for your quick response, in deed i was trying to build my code in older version (2.0 and 3.5) but there were many problems related to c# assymblies in framework 4.0 so i gave up and tried to find another solution.

Could you please give me a link to that article , i looked on the internet but didn't find it,

 

Thank you for your precisous help,Smiley Very Happy

 

Regards,

0 Kudos
Message 3 of 5
(2,890 Views)
Solution
Accepted by topic author samiti
Message 4 of 5
(2,885 Views)

Here we go!! thank you too much for the link , i think this will be very usefull 😉

 

 

Best Regards,

0 Kudos
Message 5 of 5
(2,881 Views)