NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

C# 2008 - TestStand2012 ActiveX control not registered error in Win7 64 bit OS

Solved!
Go to solution

Hello all,

 

I hope someone can help with pointing me in the right direction.

 

I have a C# 2008 application working with TestStand2010 ActiveX control (on the form). It is originally created in WinXp, 32bit and it is working fine.

Now I try to move the program to another PC with TestStand2012 and Win7 64bit.

I've already successfully recompiled the solution with TS2012 on Win7 64bit OS and I set the configuration manager from "Any CPU" to "x86". But when I debugging or running the program, I always get an exception "Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG))".

When I remove the TestStand ActiveX control on the form, the program works just fine. So I was wondering, if TestStand2012 is available for 64bit? I install TS2012 directly from the CD. Is there any other TS 2012 special package for 64 bit? or the version from the CD is for both 32bit and 64 bit?

If nothing wrong with the software, did I miss anything in the C# settings? Any suggestion is appreciated.

 

Thanks and have a nice day.

 

 

0 Kudos
Message 1 of 5
(3,773 Views)

You need to set the target platform for your C# exe to x86 instead of Any CPU.

 

-Doug

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

Thanks.

 

I already did.

0 Kudos
Message 3 of 5
(3,765 Views)
Solution
Accepted by topic author 0049

@0049 wrote:

Thanks.

 

I already did.


Is it working now then? It should work if you have the platform set to x86. There must be an issue with the way you set the platform. Look at the example C# UI project. It already does this. Maybe you are not running the right executeable. The exe is built to a different directory for each platform by default.

 

-Doug

 

Message 4 of 5
(3,750 Views)

Thanks. Doug.

 

I have already find the problem.

 

When I change the solution platform to x86, I though all my projects belonged should automatically changed to x86 as well. But for some reasons, it doesn't. Now After I manually changed all the projects to x86, it works again.

 

 

0 Kudos
Message 5 of 5
(3,745 Views)