AnsweredAssumed Answered

WMS Issue/Debug

Question asked by ejakubowski on Oct 13, 2017
Latest reply on Oct 23, 2017 by ejakubowski

Hello,  I'm trying to figure out why a particular WMS Layer/Service will not show up on the MapView.  I've tested the same WMS URL with other map tools(IE, WorldWind), which seem to support it.  However, when I try to use it in ArcGIS 10.2.7 I can't seem to get it to display anything and it doesn't report and noticeable logs or errors.  How can I debug the WmsLayer and figure out what's going on?  Below is an example, the WMS server I'm trying to get working is internal.  I do know the code can work with other WMS sites, it's just not working on the one I need it to work with. Any ideas why?  Would it have issues dealing with self-signed certs?


public partial class MainWindow : Window
public MainWindow()
ServicePointManager.ServerCertificateValidationCallback = delegate { return true; }; //ignore bad ssl

private void MyMapView_LayerLoaded(object sender, LayerLoadedEventArgs e)
if (e.LoadError == null)

Debug.WriteLine(string.Format("Error while loading layer : {0} - {1}", e.Layer.ID, e.LoadError.Message));
private void addWMSBtn_Click(object sender, RoutedEventArgs e)
//String wmsURL = "";
String wmsURL = "https://wserver/wms?TYPE=population";
var wl = new Esri.ArcGISRuntime.Layers.WmsLayer(new Uri(wmsURL));
wl.IsVisible = true;