Select to view content in your preferred language

Convert Raster to Polygon Using IGPComHelper pHelper = new ESRI.ArcGIS.Geoprocessing.GpDispatchClass()

807
1
06-16-2020 05:08 AM
AnujKumar4
New Contributor

Hi,

I am using arcgis 10.8 desktop .net SDK and trying to run my ArcGIS 10.2 .NET code but below code is throwing the exception when trying to convert raster to polygon.
IGPComHelper pHelper = new ESRI.ArcGIS.Geoprocessing.GpDispatchClass();

Exception: Retrieving the COM class factory for component with CLSID {A80DA45D-2AE6-4E4A-A4B8-A33F00EECF4E} failed due to the following error: 80040154 Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)).

0 Kudos
1 Reply
GKmieliauskas
Esri Regular Contributor

Hi Anuj,

10.8 Desktop .Net SDK is based on different .Net framework version (4.5.2). ArcGIS 10.2 based on 3.5.1.

Calling application (ArcMap) .NET version must be greater or equal tool .NET version.

Your ArcGIS Destop and ArcObjects SDK version must match. You can build tool on 10.2  and run it on 10.8 (with some changes to ArcMap config file), but not opposite.

0 Kudos