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

487
2
05-23-2010 03:36 AM
marwamohamed
New Contributor
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
New Contributor III
Hi,

You should instantiate RasterLayerClass() instead of RasterLayer.

Regards,
Nir
0 Kudos
NeilClemmons
Regular Contributor III
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