AVAX-software.com Forums: Visual Studio 2008 And Windows XP 64 Bit - AVAX-software.com Forums

Jump to content

Page 1 of 1

Visual Studio 2008 And Windows XP 64 Bit Avax Control Not Working

#1 User is offline   Terry OShea Icon

  • Newbie
  • Pip
  • Group: Members
  • Posts: 2
  • Joined: 01-June 05
  • Location:Canada

Posted 16 August 2008 - 04:15 PM

HI,

I am running Windows XP 64 bit and Visual Studio 2008. When I try to run an application with the AVAX control on the form the following error is produced. Any thoughts on how to ovcercome this?

Thanks Terry.


System.InvalidOperationException was unhandled
  Message="An error occurred creating the form. See Exception.InnerException for details.  The error is: Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG))"
  Source="WindowsApplication1"
  StackTrace:
       at WindowsApplication1.My.MyProject.MyForms.Create__Instance__[T](T Instance) in 17d14f5c-a337-4978-8281-53493378c1071.vb:line 190
       at WindowsApplication1.My.MyProject.MyForms.get_Form1()
       at WindowsApplication1.My.MyApplication.OnCreateMainForm() in c:\2\WindowsApplication1\WindowsApplication1\My Project\Application.Designer.vb:line 35
       at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.OnRun()
       at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.DoApplicat
ionModel()
       at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.Run(String
[] commandLine)
       at WindowsApplication1.My.MyApplication.Main(String[] Args) in 17d14f5c-a337-4978-8281-53493378c1071.vb:line 81
       at System.AppDomain._nExecuteAssembly(Assembly assembly, String[] args)
       at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
       at System.Threading.ThreadHelper.ThreadStart()
  InnerException: System.Runtime.InteropServices.COMException
       Message="Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG))"
       Source="System.Windows.Forms"
       ErrorCode=-2147221164
       StackTrace:
            at System.Windows.Forms.UnsafeNativeMethods.CoCreateInstance(Guid& clsid, Object punkOuter, Int32 context, Guid& iid)
            at System.Windows.Forms.AxHost.CreateWithoutLicense(Guid clsid)
            at System.Windows.Forms.AxHost.CreateWithLicense(String license, Guid clsid)
            at System.Windows.Forms.AxHost.CreateInstanceCore(Guid clsid)
            at System.Windows.Forms.AxHost.CreateInstance()
            at System.Windows.Forms.AxHost.GetOcxCreate()
            at System.Windows.Forms.AxHost.TransitionUpTo(Int32 state)
            at System.Windows.Forms.AxHost.CreateHandle()
            at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
            at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
            at System.Windows.Forms.AxHost.EndInit()
            at WindowsApplication1.Form1.InitializeComponent() in c:\2\WindowsApplication1\WindowsApplication1\Form1.Designer.vb:line 47
            at WindowsApplication1.Form1..ctor()
       InnerException: 


#2 User is offline   Terry OShea Icon

  • Newbie
  • Pip
  • Group: Members
  • Posts: 2
  • Joined: 01-June 05
  • Location:Canada

Posted 17 August 2008 - 10:37 PM

This issue has been resolved by setting the compile option from Target CPU Both to Target CPU x86 in Visual Studio as the AVAX control does not function under 64 bit.

Terry

Page 1 of 1


Fast Reply

  

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users