Select to view content in your preferred language

ADF and ADF Local DLL

5030
4
Jump to solution
04-18-2013 06:19 PM
KentLam
Deactivated User
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.
0 Kudos
1 Solution

Accepted Solutions
NeilClemmons
Honored Contributor
I believe the ComReleaser class is in the ADF.Connection.Local assembly.

View solution in original post

0 Kudos
4 Replies
NeilClemmons
Honored Contributor
At 10.0 and higher you should not be referencing the ADF assembly at all.  You should be using ADF.Local.
0 Kudos
KentLam
Deactivated User
Hi Neil, thanks for the quick response. I need to use ADF for ComReleaser. ADF.Local does not have this class. Is there a suitable replacement?
0 Kudos
NeilClemmons
Honored Contributor
I believe the ComReleaser class is in the ADF.Connection.Local assembly.
0 Kudos
KentLam
Deactivated User
Thank you very much. ADF.Connection.Local solved it.
0 Kudos