AnsweredAssumed Answered

ADF and ADF Local DLL

Question asked by Kentative on Apr 18, 2013
Latest reply on Apr 20, 2013 by Kentative
I need to use ComReleaser, BaseCommand and MxCommand.

The simple solution is to use ESRI.ArcGIS.ADF since it has these classes. However, the compiler complains:

The type 'ESRI.ArcGIS.ADF.BaseClasses.BaseCommand' is defined in an assembly that is not referenced. You must add a reference to assembly 'ESRI.ArcGIS.ADF.Local, Version=10.1.0.0, ...


And if I add that reference, it complaints that I have duplicate:
The type 'ESRI.ArcGIS.ADF.CATIDs.MxCommands' exists in both 'C:\Program Files (x86)\ArcGIS\DeveloperKit10.1\DotNet\ESRI.ArcGIS.ADF.Local.dll' and 'C:\Program Files (x86)\ArcGIS\DeveloperKit10.1\DotNet\ESRI.ArcGIS.ADF.dll'


How do I resolve this issue? Is there a way to explicitly specify which dll to load the class from?

Please help.

Outcomes