Hi Khalil,
I'm getting the same issue in the 'Simple Server Rendering' example of the sample app (Screenshot below):
I've attached the file from the sample. I've commented out the lines I didn't need for my testing and left the ones which load cntry02.shp:
protected void Page_Load(object sender, EventArgs e)
{
if (!Page.IsPostBack)
{
ShapeFileFeatureLayer worldLayer = new ShapeFileFeatureLayer(MapPath("~/app_data/cntry02.shp"));
worldLayer.ZoomLevelSet.ZoomLevel01.DefaultAreaStyle = AreaStyles.CreateSimpleAreaStyle(GeoColor.FromArgb(255, 243, 239, 228), GeoColor.FromArgb(255, 218, 193, 163), 1);
worldLayer.ZoomLevelSet.ZoomLevel01.ApplyUntilZoomLevel = ApplyUntilZoomLevel.Level20;
// Native Server 1
BackgroundLayer backgroundLayer = new BackgroundLayer(new GeoSolidBrush(GeoColor.FromArgb(255, 156, 187, 216)));
ServerLayerOverlay layerOverlay = new ServerLayerOverlay("NativeServer");
layerOverlay.Layers.Add(backgroundLayer);
layerOverlay.Layers.Add(worldLayer);
SilverlightMapConnector1.ServerLayerOverlays.Add(layerOverlay);
}
}
Am I missing to include any line of code for Version 4.0?
Thanks,
Nirish
2116-Default.aspx.cs (10.7 KB)