Unable to reference the Geoprocessor dll in .NET

2229
3
05-24-2011 05:02 AM
MichaelBlom
New Contributor III
Hello,

When I try to create an instance of ESRI.ArcGIS.Geoprocessor() I get this error, which I can't seem to get around... thanks for any help.

Retrieving the COM class factory for component with CLSID {5374EC4C-1AA2-4829-A811-DE624ECEC23F} failed due to the following error: 80040111 ClassFactory cannot supply requested class (Exception from HRESULT: 0x80040111 (CLASS_E_CLASSNOTAVAILABLE)).

Mike
0 Kudos
3 Replies
KenBuja
MVP Esteemed Contributor
Make sure you're adding the correct reference. You have to add it using the Add Reference.. tool instead of the Add ArcGIS Reference.. When that dialog is opened, look for the ESRI.ArcGIS.Geoprocessor component.
0 Kudos
NeilClemmons
Regular Contributor III
Hello,

When I try to create an instance of ESRI.ArcGIS.Geoprocessor()...


Did you mean ESRI.ArcGIS.Geoprocessor.Geoprocessor?  ESRI.ArcGIS.Geoprocessor is the name of the library where the Geoprocessor class is defined.
0 Kudos
MichaelBlom
New Contributor III
This was all related to not adding the few lines of code to initialize an ESRI license.... an error message pointing me in this direction would have been nice.

Thanks for your times.