NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

AX Controlls not found for C# UI project

For the upcoming TSF project we are looking into an option of creating a custom TS launcher using C#. 

 

We are trying to configure the environment with the given examples (...Program Files (x86)\National Instruments\TestStand 2021\UserInterfaces\Full-Featured\CSharp) but are running into problems:

  • Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG))
  • The variable 'axTerminateAllButton' is either undeclared or was never assigned.
  • The variable 'axExitButton' is either undeclared or was never assigned.
  • The variable 'axSequenceView' is either undeclared or was never assigned.
  • The variable 'axLoginLogoutButton' is either undeclared or was never assigned.
  • The variable 'axTerminateRestartButton' is either undeclared or was never assigned.
  • The variable 'axBreakResumeButton' is either undeclared or was never assigned.
  • The variable 'axReportView' is either undeclared or was never assigned.

From what we understood, we are missing the activex controlls in the registry, although we found some controlls with different names:

johndeer321_21-1739230260076.png

Could someone guide us through the troubleshoot? As these issues were never covered in the advanced TS trainings.

 

Problems occuring on multiple work laptops, both Windows 10 & 11. Using TestStand 2021 SP1.

0 Kudos
Message 1 of 2
(119 Views)

Well, regarding this question, I guess you may have used VS2022 to open the example project of TS2021.

You can try using VS2019 or VS2017, and then you will discover a different world.

Good luck!

0 Kudos
Message 2 of 2
(104 Views)