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.


Reply With Quote
