Select to view content in your preferred language

Problem executing an ArcToolBox in a geoprocessor

495
2
05-03-2010 08:41 AM
CayetanoRuiz_de_Alarcón_Quinte
New Contributor
Hello,

I've had the next problem when I've tried to execute a tool form a geoprocessor object, the code that I've executed is the next, where 'rutas' and 'arcosMod' are line feature layers that are inteo a local geodatabase:

  "gp = New ESRI.ArcGIS.Geoprocessor.Geoprocessor
  Dim toolSelByLocation As SelectLayerByLocation = New SelectLayerByLocation()
  toolSelByLocation.in_layer = "G:\simetria\simetria16-04-10\Simetria2008.gdb\Sim2008\rutas"
  toolSelByLocation.select_features = "G:\simetria\simetria16-04-10\Simetria2008.gdb\Sim2008\arcosMod"
  toolSelByLocation.overlap_type = "INTERSECT"
   Dim resultGp As IGeoProcessorResult
        Try
           resultGp = gp.Execute(toolSelByAtt, Nothing)
         Catch err As Exception
            Console.WriteLine(err.Message)
        End Try"

And when I execute this command I have the next error message:

Exception of type tipo 'System.Runtime.InteropServices.COMException' in ESRI.ArcGIS.Geoprocessor.dll
0 Kudos
2 Replies
DavidBachy
Deactivated User
I have the same problem too.
The error seems to appear in the constructor code at "Geoprocessor gp = new Geoprocessor();".
The returned exception message is (in French):
La création d'une instance du composant COM avec le CLSID {5374EC4C-1AA2-4829-A811-DE624ECEC23F} à partir de IClassFactory a échoué en raison de l'erreur suivante*: 80010105.;   à ESRI.ArcGIS.Geoprocessor.Geoprocessor..ctor()

This error appeared "randomly"...
I don't know why?
0 Kudos
JoshV
by
Regular Contributor
I have the same problem too.
The error seems to appear in the constructor code at "Geoprocessor gp = new Geoprocessor();".
The returned exception message is (in French):
La création d'une instance du composant COM avec le CLSID {5374EC4C-1AA2-4829-A811-DE624ECEC23F} à partir de IClassFactory a échoué en raison de l'erreur suivante*: 80010105.;   à ESRI.ArcGIS.Geoprocessor.Geoprocessor..ctor()

This error appeared "randomly"...
I don't know why?


David did you figure this out?  I have the same problem
0 Kudos