07-04-2012 03:08 AM
Hello
I'm triying to declare the teststand Engine.
This is the code.
Public
Class Form1
Public ts As New NationalInstruments.TestStand.Interop.API.Engine
PrivateSub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) HandlesMyBase.Load
EndSub
End
and I get ...
'An error occurred creating the form. See Exception.InnerException for details. The error is: Retrieving the COM class factory for component with CLSID {B2794EF6-C0B6-11D0-939C-0020AF68E893} failed due to the following error: 80040154.'
does anybody know how to initialize teststand API.Engine in visual studio 2008?
Thanks
07-06-2012 09:34 AM
This error can happen in .NET projects if you have the platform set to "Any CPU" (which is the default) and you are trying to run on a 64-bit OS. You need to create an x86 platform configuration for your project and build that.
Hope this helps,
-Doug
07-08-2012 02:04 AM
Thanks Doug
It fixed the problem .