ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

.net constructor error message

Solved!
Go to solution

Hi,

 

I'm trying to use the .Net Constructor node with an assembly which I'm sure has been used by others,

see http://forums.ni.com/t5/LabVIEW/TI-USB-to-GPIO-interface-EVM-adapter-Dll-for-Labview-driver/td-p/112... for example.

 

But when I try to create an object from the assembly I get the following error displayed in Labview:

 

 

Construct Error.png

I don't understand why I am prevented from creating an object instance ?

 

I'm using : Windows 7 Pro, Labview 2014 SP1. And Microsoft .Net Framework 4.5.2 is installed.

 

I've attached a copy of the USB Adapter Driver assembly, (replace file extension: .z with .dll to use.)

 

Thanks,

 

Gary. 

 

0 Kudos
Message 1 of 3
(5,244 Views)
Solution
Accepted by topic author Gary_H
Message 2 of 3
(5,233 Views)

Jean-Marc,

 

Thank you for your helpful answer, problem now resolved.

 

Here's some additional text to the link text you pointed to:

 

 

The link text said:

 

Tip: In Windows 7 or later, you also can right-click the assembly and click Unblock on the General tab to grant an assembly full trust.

 

When the .Net assembly file was right clicked in Windows ExpIorer I saw:

 

 

File Properties.png

Clicking on "Unblock"  resolved the problem and allowed the Labview .Net Constructor node to function correctly.

 

 

Thank you Jean-Marc.

 

Gary.

Message 3 of 3
(5,220 Views)