I've got an ArcGIS Engine application that uses the IMADtedLayer interface to access VPF DTED catalog layers and adds them to a map. The code ran fine under v9.3.1. I just updated to v10, and now I get:
Unable to cast COM object of type 'ESRI.ArcGIS.DefenseSolutions.MADtedLayerClass' to interface type 'ESRI.ArcGIS.DefenseSolutions.IMADtedLayer'. ... No such interface supported
Here's the relevant C# code:
// geodbFWS is the IFeatureWorkspace object that contains the catalog
// sCatName is the catalog name (string)
ITable catTable = geodbFWS.OpenTable(sCatName);
if (catTable != null)
{
IMADtedLayer aMADted = new MADtedLayerClass();
bool bSetup = aMADted.Setup(catTable);
}
The error occurs on the "bool bsetup" line.
I've tried substituting new MADtedLayer(); for new MADtedLayerClass(); - with the same result. I've also uninstalled all ArcGIS components, cleaned out the registry and re-installed. I get the same error.
I'm using MSVisualStudio 2010, and the intellisense recognizes the IMADtedLayer interface, the MADtedLayerClass, and the .Setup method - as well as the fact that it should return a boolean.
I'm running the Windows 7 Professional Operating System. Has anyone else encountered this problem? Any insights will be greatly appreciated!