Results 1 to 2 of 2

Thread: Error in running ArcGIS Application

  1. #1
    Hyperactive Member
    Join Date
    Jul 05
    Posts
    282

    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.

  2. #2
    PowerPoster
    Join Date
    Mar 02
    Location
    UK
    Posts
    4,030

    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •