laptop and a wrench

Bug

Selected features in a MXD based map service display in black in a web application.

Last Published: August 25, 2014 ArcGIS Server (.NET)
Bug ID Number NIM064555
SubmittedJanuary 27, 2011
Last ModifiedApril 2, 2025
Applies toArcGIS Server (.NET)
Version found10.0
Operating SystemWindows OS
Operating System Version7
StatusKnown Limit

Additional Information

10.1 was the last release of the .NET WebADF technology. Client APIs (JavaScript/Flex/Silverlight) are recommended for web application development.

Workaround

1. Use MSD-based map service.2. Set LayerDescription.SetSelectionSymbol property to false.3. Set a transparent RgbColor object to the SimpleFillSymbol.Color property. Adding the source code below to the Page_Lord event handler in the Default.aspx.cs will fix this problem:if (!IsPostBack){ // Get LayerDescription ESRI.ArcGIS.ADF.Web.DataSources.IMapFunctionality mf = Map1.GetFunctionality("MapResourceItem0"); ESRI.ArcGIS.ADF.Web.DataSources.ArcGISServer.MapResourceBase mrb = mf.Resource as ESRI.ArcGIS.ADF.Web.DataSources.ArcGISServer.MapResourceBase; ESRI.ArcGIS.ADF.ArcGISServer.MapDescription mapDesc = mrb.MapDescription; ESRI.ArcGIS.ADF.ArcGISServer.LayerDescription layerDesc = mapDesc.LayerDescriptions[3]; // "LayerName" // Modify SelectionSymbol ESRI.ArcGIS.ADF.ArcGISServer.SimpleFillSymbol soapSfs = (ESRI.ArcGIS.ADF.ArcGISServer.SimpleFillSymbol)layerDesc.SelectionSymbol; if (soapSfs.Color == null) { // Create and set transparent fill color ESRI.ArcGIS.ADF.ArcGISServer.RgbColor noColor = new ESRI.ArcGIS.ADF.ArcGISServer.RgbColor();

Steps to Reproduce

Bug ID: NIM064555

Software:

  • ArcGIS Server (.NET)

Get notified when the status of a bug changes

Download the Esri Support App

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options