From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

.net constructor error 4

Running LabVIEW 2009 sp1, and have a .net constructor that is giving me error 4 when calling it.  The constructor does not take any inputs or outputs (other than error clusters and new reference out).

 

Saw a similar post for error 3 (http://forums.ni.com/ni/board/message?board.id=170&thread.id=354796), but this does not appear to be the problem.

 

Anyone have any thoughts?

Joe Gerhardstein
Viasat
Certified LabVIEW Architect
Certified TestStand Developer
Certified Professional Instructor
http://www.viasat.com
0 Kudos
Message 1 of 7
(2,932 Views)

Its a little hard to work out what could be causing your error without more information: Are you able to tell us about the class you are calling and, more importantly, are you able to copy and paste the error text?

 

Shaun 

0 Kudos
Message 2 of 7
(2,921 Views)
Sorry, should have posted example code last night, but was on my way out the door and was hoping someone had seen this before.  Attached is an example which causes the problem. I also attached a screen shot of the error, though as mentioned earlier there really isn't any information in it to help debug.
Joe Gerhardstein
Viasat
Certified LabVIEW Architect
Certified TestStand Developer
Certified Professional Instructor
http://www.viasat.com
Download All
0 Kudos
Message 3 of 7
(2,904 Views)
LabVIEW is having trouble even simply loading that assembly on my machine (LV 2009 SP1, .NET 3.5) - are you able to use this assembly in other environments (ie VS c#)?
0 Kudos
Message 4 of 7
(2,897 Views)

Make sure you have .NET 1.1 on your machine.  The .dll is not forward-compatible with 3.5.

 

.NET 1.1 (microsoft.com)

 

.NET 1.1 SP1 updater (microsoft.com)

Joe Gerhardstein
Viasat
Certified LabVIEW Architect
Certified TestStand Developer
Certified Professional Instructor
http://www.viasat.com
0 Kudos
Message 5 of 7
(2,894 Views)

I've got 1.1 (and also 1.0.3705, 1.1.4322, 2.0.50727, 3.0 and 3.5)

 

Here's what I get when I try and load the constructor (even after re-browsing to the DLL):

 

Error Loading Assembly.png 

 

Maybe there's a dependency somewhere that you have not included? 

0 Kudos
Message 6 of 7
(2,887 Views)
Sorry, some of the .dlls were being loaded from another location on my machine.  Try attached.
Joe Gerhardstein
Viasat
Certified LabVIEW Architect
Certified TestStand Developer
Certified Professional Instructor
http://www.viasat.com
0 Kudos
Message 7 of 7
(2,881 Views)