Select to view content in your preferred language

Error in ArcGIS Engine

1048
2
02-21-2011 09:31 PM
OMERSAEED
Deactivated User
System.Runtime.InteropServices.COMException was unhandled
  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 EngineWindowsApplication1.Form1.InitializeComponent() in F:\2nd Semester\GIS 877 [Spatial Decision Support Systems]\Programs\EngineWindowsApplication1\EngineWindowsApplication1\Form1.Designer.cs:line 75
       at EngineWindowsApplication1.Form1..ctor() in F:\2nd Semester\GIS 877 [Spatial Decision Support Systems]\Programs\EngineWindowsApplication1\EngineWindowsApplication1\Form1.cs:line 15
       at EngineWindowsApplication1.Program.Main() in F:\2nd Semester\GIS 877 [Spatial Decision Support Systems]\Programs\EngineWindowsApplication1\EngineWindowsApplication1\Program.cs:line 17
       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()
0 Kudos
2 Replies
OMERSAEED
Deactivated User
Can anyone please help me for the above stated problem....
0 Kudos
EricBader
Honored Contributor
It seems like your code is executing before you've called AoInitialize.
0 Kudos