Select to view content in your preferred language

Implementing class 'ESRI.ArcGIS.Carto.RasterLayerClass' for interface 'ESRI.ArcGIS.Ca

558
2
05-23-2010 03:36 AM
marwamohamed
Deactivated User
Has anyone faced this syntax error before ?
Implementing class 'ESRI.ArcGIS.Carto.RasterLayerClass' for interface 'ESRI.ArcGIS.Carto.RasterLayer' cannot be found.
in second line below

Dim pRasterLayer As ESRI.ArcGIS.Carto.IRasterLayer

pRasterLayer = New ESRI.ArcGIS.Carto.RasterLayer

I've already added the ESRI.ArcGIS.Carto reference to my solution
0 Kudos
2 Replies
NirYoscovitz
Emerging Contributor
Hi,

You should instantiate RasterLayerClass() instead of RasterLayer.

Regards,
Nir
0 Kudos
NeilClemmons
Honored Contributor
IRasterLayer is in Carto but the implementing class (RasterLayer) requires references to Geodatabase, Display, System, and DataSourcesRaster.  Make sure you have all of these assemblies added as references.
0 Kudos