NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

TestStand Deployment problems on Windows 2K3 x64

Solved!
Go to solution

Greeings:

 

I'm hoping someone out there can advise me.

 

I recently tried building a TS application to deploy on a server running WIndows Server 2003 x64, and I have run into a few difficulties.  On my development system, (32-bit WInXP pro) I built a TS Deployment installer.  I transfered it to the destination machine.  Installation failed ... it said that numerous files were missing from different CAB files.  I tried again ...  the second time I had better luck ... the installation seemed to take.  Using the License Manager, I activated my installation using my development license (my deployment license hasn't arrived yet).  I tried launching my application, and I get an exception that seems to indicate the ActiveX dlls aren't registered:

 

Unhandled Exception: System.Runtime.InteropServices.COMException (0x80040154): C
lass not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG))
   at System.Windows.Forms.UnsafeNativeMethods.CoCreateInstance(Guid& clsid, Obj
ect punkOuter, Int32 context, Guid& iid)

 

I tried registering these manually using

 

regsvr32 "D:\Program Files\National Instruments\TestStand 4.1\API\DotNet\Assemblies\CurrentVersion\NationalInstruments.TestStand.Interop.UI.AxControls.dll"

 

but it complains that this DLL has no DllRegisterServer entry point.  (Is it the wrong DLL to register?)

 

 I tried uninstalling my deployment and installing the full teststand ... and SeqEdit seems to run properly.  (It must have registered the required DLLs, no?)  My app, on the other hand, still does not run. I am trying to install Visual Studio to see if I can rebuild the application on this system with better results.

 

Have I missed an important step?

 

Thanks!

Tom MacLean

0 Kudos
Message 1 of 7
(3,618 Views)

Update ...

 

So, I installed Visual Studio (2008) and I rebuild my solution ... same exception.

I open the Operator Interfaces example code and it builds and runs!!

I create a empty forms application and drop in the Application Manager and a button (only things my app has) and build it, run it ... same exception as with my applications.  (*&^(*^!!

 

Grumble.  Sigh.

 

Tom M.

0 Kudos
Message 2 of 7
(3,608 Views)
Well, TestStand is not supported on any 64 bit OS as far as I know.
0 Kudos
Message 3 of 7
(3,607 Views)
That may be true ... but SeqEdit works, and the OI code works.... and I have read about others doing so (I think).
0 Kudos
Message 4 of 7
(3,597 Views)
Solution
Accepted by topic author LabCat
I think the problem was that I have to target the solution for an x86 platform ... not Any Platform.  Though I still have other challenges with this particular application, I was able to recreate the Simple OI example in a new project with the same exception as I had with mine, and changing the target platform made it work.
0 Kudos
Message 5 of 7
(3,591 Views)

LabCat,

 

That's correct.  If you have the build set as Any Platform, when you install that on a 64-bit machine, the project will try to load the 64-bit versions of those assemblies, which don't exist.  You have to make sure your project is building specifically for x86 so it will run properly on a 64-bit machine.  I believe TestStand 4.2 or 4.2.1 ships with OIs that have this set as the default setting in the .NET OI source code, but your earlier version may not have had that corrected.

Eric B.
National Instruments
0 Kudos
Message 6 of 7
(3,557 Views)

I think that setting is already correct in 4.1 (which is why the OI code worked) ... but it took me a while to figure out that that was the difference between the OI code and mine.  Thanks for confirming though.

 

Regards,

Tom M.

0 Kudos
Message 7 of 7
(3,543 Views)