LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

labview using netframework4.0 cannot read dll file

Hello

I am trying to load a .NET dll in Labview 2010 (Windows 7)

 

The version of the .NET framework I have is 4.0.30319

I made the following config file, according to the online instructions:

 

<configuration>
<startup useLegacyV2RuntimeActivationPolicy="true">
<supportedRuntime version="v4.0.30319"/>
</startup>
</configuration>

 

But when I use Select .net constructor, an error occurs, and I don't know why.

Can someone help me?

Thanks.

sonwendi

 

error.PNG

 

The attatchment was a rar file , but I didn't have 7-zip, so I used winrar to compresse it as EZ_B.rar. Then I changed the filename to EZ_B.gz to upload it.

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

This is from LabVIEW 2011 Help.

Read 

Unsupported .NET Features in LabVIEW

Section in the following link and check the KB

 

https://www.ni.com/docs/en-US/bundle/labview/page/requirements-for-using-net-assemblies-in-labview.h...

 




CLA CTAChampionI'm attending the GLA Summit!
Subscribe to the Test Automation user group: UK Test Automation Group
0 Kudos
Message 2 of 5
(2,762 Views)

Thanks.But about one month ago, I could use the dll ,and labview can load it.

Yesterday I reinstall the system, and it cannot work. I am confused about it.

Cat Sad

0 Kudos
Message 3 of 5
(2,759 Views)

OK, I wasnt sure what features you were using. If it was working, one thing you could try is to rebuild the dll using the current .net version. This is just for isloating problems, if this works you can be sure that its something to do with your windows / .net version.

Also have you installed all the windows and LabVIEW patches you may have had in the previous installation?


CLA CTAChampionI'm attending the GLA Summit!
Subscribe to the Test Automation user group: UK Test Automation Group
0 Kudos
Message 4 of 5
(2,745 Views)

Yes , I am sure.

Today I tried it on another two PCs reinstalled with win7, and labview could load the EZ_B.dll rightly.

But the first PC still could not load the dll file.

I just want to know what is the reason~Cat Sad

 

Labview load the dll file rightly:

QQ截图20140311152106.jpg

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