AnsweredAssumed Answered

Blank map WPF?

Question asked by ckoenig77 on Aug 8, 2017
Latest reply on Aug 10, 2017 by ckoenig77

I'm trying to reference a simple map service published to ArcGIS Server (running on same machine as development) which has just a shapefile.  I'm using WPF and version 100.1 of the runtime.  Below is the code in the constructor of the startup window in my .NET WPF project.  When the app opens I don't see any features.  The service seems to be running fine as I can consume it in ArcMap.  I don't get any exceptions and nothing shows in server logs.  Any ideas?  Thanks in advance,





var uri = new Uri("https://localhost:6443/arcgis/rest/services/MyMapService/MapServer");              ArcGISMapImageLayer layer = new ArcGISMapImageLayer(uri);              Map map = new Map(SpatialReference.Create(4326));              map.OperationalLayers.Add(layer);                   MyMap.Map = map;