NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

.NET class dropdown empty

Solved!
Go to solution

Hi, all,

 

I have been trying to create a small demo using the .NET adapter. When I add a .NET action, I'm able to select the assembly without problems, but the Class dropdown does not have the class that was built. I've looked at the DLL and verified that the class I want is there.

 

The "computer" demo works normally and does have the Class dropdown populated. I can't figure out what the difference could be.

 

TestStand 4.2.1.83, Visual Studio Express 10.0.30319.1.

 

Does anyone know how to diagnose this issue?

 

Thanks,

- Steve.

 

0 Kudos
Message 1 of 4
(2,974 Views)

Another datapoint: I loaded the "Computer" example project and rebuilt it. The rebuild apparently damaged the DLL in the same way.

 

Regards, -S.

 

0 Kudos
Message 2 of 4
(2,967 Views)
Solution
Accepted by topic author SPM

Are you perhaps building .NET 4.0 dlls?

 

TestStand 4.2 does not support the .NET 4.0 clr. You will either need to compile you assembly targetting an earlier version of .NET (anything from 2.0 to 3.5 should work), or you will have to use a newer version fo TestStand (TestStand 2010 supports .NET 4.0 by specifying an app.config file, it does still use .NET 2.0 by default though).

 

Also, make sure the class you want to see is marked as public in your assembly.

-Doug

Message 3 of 4
(2,963 Views)

That worked, Doug. Thanks! -S.

0 Kudos
Message 4 of 4
(2,952 Views)