ERROR
After installing version 9.3 of the ArcGIS Server .NET Web ADF and modifying a Web application created with version 9.2, building the Web site in Visual Studio can return one of the following errors:
Message # 1
"ESRI.ArcGIS.ADF.Web.UI.WebControls.BuddyControlCollection
must have items of type
'ESRI.ArcGIS.ADF.Web.UI.WebControls.BuddyControl'.
'esri.arcgis.adf.web.ui.webcontrols.buddycontrol' is of type
'System.Web.UI.HtmlControls.HtmlGenericControl'."
Message # 2
"ESRI.ArcGIS.ADF.Web.UI.WebControls.GISResourceItemCollection`1
[[ESRI.ArcGIS.ADF.Web.UI.WebControls.MapResourceItem,
ESRI.ArcGIS.ADF.Web.UI.WebControls, Version=9.3.0.1770,
Culture=neutral, PublicKeyToken=8fc3cc631e44ad86]]
must have items of type
'ESRI.ArcGIS.ADF.Web.UI.WebControls.MapResourceItem'.
'esri.arcgis.adf.web.ui.webcontrols.mapresourceitem' is of type
'System.Web.UI.HtmlControls.HtmlGenericControl'."
Error message #2 is specific to the MapResourceManager. The GeoprocessingResourceManager and GeocodeResourceManager controls return slightly different messages that refer to 'GeoprocessingResourceItem' and 'GeocodeResourceItem' respectively.
The problem occurs because the web.config file of the application contains references to version 9.2 Web ADF and ArcObjects assemblies, but the installed versions of these assemblies are version 9.3. Though publisher policy files are in place to direct applications created with the ArcGIS Server 9.2 Web ADF to use the newer version 9.3 assemblies, Visual Studio does not respect this due to a bug.
Visual Studio Designer not Respecting Assembly Binding Redirection.
When editing a property for a Web ADF control, incorrect markup gets inserted into the page, causing these errors. The incorrect markup can be found by looking at the source code view of the ASPX page.
The problem only happens when editing a control that contains child elements. Examples of controls that use child elements are the MapResourceManager, Search or Query tasks, and the Toolbar.
Code:
ESRI.ArcGIS.ADF.Web.UI.WebControls.BuddyControlCollection
Code:
esri:buddycontrol
Code:
esri.arcgis.adf.web.ui.webcontrols.tool
Code:
esri:tool
Code:
esri.arcgis.adf.web.ui.webcontrols.buddycontrol
Code:
esri:buddycontrol
Code:
esri.arcgis.adf.web.ui.webcontrols.mapresourceitem
Code:
esri:mapresourceitem
Code:
esri.arcgis.adf.web.ui.webcontrols.geocoderesourceitem
Code:
esri:geocoderesourceitem
Code:
esri.arcgis.adf.web.ui.webcontrols.geoprocessingresourceitem
Code:
esri:geoprocessingresourceitem
Get help from ArcGIS experts
Download the Esri Support App