Error in running ArcGIS Application
Hi,
I am using Windows XP 32 bit OS with ArcGIS10.
I am encountering an error at run time. The error is occuring in the following line in bold.
Code:
Dim doc As IDocument = Nothing
Try
Me.Cursor = Cursors.WaitCursor
Select Case cboApps.SelectedItem.ToString()
Case "ArcMap"
doc = New ESRI.ArcGIS.ArcMapUI.MxDocumentClass()
Case "ArcScene"
doc = New ESRI.ArcGIS.ArcScene.SxDocumentClass()
Case "ArcGlobe"
doc = New ESRI.ArcGIS.ArcGlobe.GMxDocumentClass()
End Select
Catch
Finally
Me.Cursor = Cursors.Default
End Try
I evaluated the line "New ESRI.ArcGIS.ArcMapUI.MxDocument" in the watch window and got the following message:
Run-time exception thrown : System.Runtime.InteropServices.COMException - Retrieving the COM class factory for component with CLSID {006B1AFE-C66C-11D0-B94C-080009EE4E51} failed due to the following error: 80040111.
Re: Error in running ArcGIS Application
This is an error with the library you are using, check the forums, a quick search brought up the error code a couple of times (ie here or here). Failing that, email them.