<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic WmsLayer failure in ArcGIS API for Silverlight Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/wmslayer-failure/m-p/382143#M9882</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hey everyone,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've been using the WmsLayer for my WMS Service needs, rather than my old way of doing things by sussing out a GetMap URL and posting that image to a GraphicsLayer. It's been working well but I seem to have found a service that breaks it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is the getCapabilities URL I'm using:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;http://ags.pdc.org/arcgis/services/global/pdc_active_hazards/MapServer/WMSServer?SERVICE=WMS&amp;amp;REQUEST=GetCapabilities&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm able to to get the Name of the layers available (they're using simple numbers to ID them). I provide the WmsLayer the&amp;nbsp; getCapabilitiesURL, the layer ID number &amp;amp; a Proxy Url based upon the proxy handler from the documentation here at ESRI. Unfortunately that doesn't seem to be enough. When debugging, I crash to an unhandled exception as soon as I add it to my map control.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;Category: ManagedRuntimeError
Message: System.InvalidOperationException: Sequence contains no elements&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Using Firebug to look at my hosted application, it reports this error:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;Unhandled Error in Silverlight Application Data at the root level is invalid. Line 1, position 1.&amp;nbsp;&amp;nbsp; at System.Xml.XmlTextReaderImpl.Throw(Exception e)
&amp;nbsp;&amp;nbsp; at System.Xml.XmlTextReaderImpl.Throw(String res, String arg)
&amp;nbsp;&amp;nbsp; at System.Xml.XmlTextReaderImpl.ParseRootLevelWhitespace()
&amp;nbsp;&amp;nbsp; at System.Xml.XmlTextReaderImpl.ParseDocumentContent()
&amp;nbsp;&amp;nbsp; at System.Xml.XmlTextReaderImpl.Read()
&amp;nbsp;&amp;nbsp; at System.Xml.Linq.XDocument.Load(XmlReader reader, LoadOptions options)
&amp;nbsp;&amp;nbsp; at System.Xml.Linq.XDocument.Parse(String text, LoadOptions options)
&amp;nbsp;&amp;nbsp; at ESRI.ArcGIS.Client.Toolkit.DataSources.WmsLayer.client_DownloadStringCompleted(Object sender, DownloadStringCompletedEventArgs e)
&amp;nbsp;&amp;nbsp; at System.Net.WebClient.OnDownloadStringCompleted(DownloadStringCompletedEventArgs e)
&amp;nbsp;&amp;nbsp; at System.Net.WebClient.DownloadStringOperationCompleted(Object arg)&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The XML returned by the GetCapabilities call seems sound to me - at least it appears like all of the other WMS services I've been communicating with - so I'm not sure what parsing errors it is running into. Any ideas? I can provide further info if there is something I haven't thought to check.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 17 May 2012 14:55:11 GMT</pubDate>
    <dc:creator>ZachPride</dc:creator>
    <dc:date>2012-05-17T14:55:11Z</dc:date>
    <item>
      <title>WmsLayer failure</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/wmslayer-failure/m-p/382143#M9882</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hey everyone,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've been using the WmsLayer for my WMS Service needs, rather than my old way of doing things by sussing out a GetMap URL and posting that image to a GraphicsLayer. It's been working well but I seem to have found a service that breaks it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is the getCapabilities URL I'm using:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;http://ags.pdc.org/arcgis/services/global/pdc_active_hazards/MapServer/WMSServer?SERVICE=WMS&amp;amp;REQUEST=GetCapabilities&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm able to to get the Name of the layers available (they're using simple numbers to ID them). I provide the WmsLayer the&amp;nbsp; getCapabilitiesURL, the layer ID number &amp;amp; a Proxy Url based upon the proxy handler from the documentation here at ESRI. Unfortunately that doesn't seem to be enough. When debugging, I crash to an unhandled exception as soon as I add it to my map control.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;Category: ManagedRuntimeError
Message: System.InvalidOperationException: Sequence contains no elements&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Using Firebug to look at my hosted application, it reports this error:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;Unhandled Error in Silverlight Application Data at the root level is invalid. Line 1, position 1.&amp;nbsp;&amp;nbsp; at System.Xml.XmlTextReaderImpl.Throw(Exception e)
&amp;nbsp;&amp;nbsp; at System.Xml.XmlTextReaderImpl.Throw(String res, String arg)
&amp;nbsp;&amp;nbsp; at System.Xml.XmlTextReaderImpl.ParseRootLevelWhitespace()
&amp;nbsp;&amp;nbsp; at System.Xml.XmlTextReaderImpl.ParseDocumentContent()
&amp;nbsp;&amp;nbsp; at System.Xml.XmlTextReaderImpl.Read()
&amp;nbsp;&amp;nbsp; at System.Xml.Linq.XDocument.Load(XmlReader reader, LoadOptions options)
&amp;nbsp;&amp;nbsp; at System.Xml.Linq.XDocument.Parse(String text, LoadOptions options)
&amp;nbsp;&amp;nbsp; at ESRI.ArcGIS.Client.Toolkit.DataSources.WmsLayer.client_DownloadStringCompleted(Object sender, DownloadStringCompletedEventArgs e)
&amp;nbsp;&amp;nbsp; at System.Net.WebClient.OnDownloadStringCompleted(DownloadStringCompletedEventArgs e)
&amp;nbsp;&amp;nbsp; at System.Net.WebClient.DownloadStringOperationCompleted(Object arg)&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The XML returned by the GetCapabilities call seems sound to me - at least it appears like all of the other WMS services I've been communicating with - so I'm not sure what parsing errors it is running into. Any ideas? I can provide further info if there is something I haven't thought to check.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 May 2012 14:55:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/wmslayer-failure/m-p/382143#M9882</guid>
      <dc:creator>ZachPride</dc:creator>
      <dc:date>2012-05-17T14:55:11Z</dc:date>
    </item>
    <item>
      <title>Re: WmsLayer failure</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/wmslayer-failure/m-p/382144#M9883</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I can't reproduce with the latest API version (3.0).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]14416[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Which version are you using?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 May 2012 09:08:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/wmslayer-failure/m-p/382144#M9883</guid>
      <dc:creator>DominiqueBroux</dc:creator>
      <dc:date>2012-05-18T09:08:25Z</dc:date>
    </item>
    <item>
      <title>Re: WmsLayer failure</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/wmslayer-failure/m-p/382145#M9884</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Oh, I did not know there was a newer version out. I'm working with 2.4 from January. I'll see what happens with the newer API.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However, based upon my projects requirements I might need to continue supporting Silverlight 4... Are there known modifications to WmsLayer in 3.0?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 May 2012 16:53:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/wmslayer-failure/m-p/382145#M9884</guid>
      <dc:creator>ZachPride</dc:creator>
      <dc:date>2012-05-18T16:53:57Z</dc:date>
    </item>
    <item>
      <title>Re: WmsLayer failure</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/wmslayer-failure/m-p/382146#M9885</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I eventually tried with ArcGIS 2.4 and I didn't reproduce the issue either.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I added this layer to the interactive SDK sample:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN style="color:blue;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color:#a31515;"&gt;esri&lt;/SPAN&gt;&lt;SPAN style="color:blue;"&gt;:&lt;/SPAN&gt;&lt;SPAN style="color:#a31515;"&gt;WmsLayer&lt;/SPAN&gt;&lt;SPAN style="color:red;"&gt; ID&lt;/SPAN&gt;&lt;SPAN style="color:blue;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color:blue;"&gt;"OtherWMSLayer"&lt;/SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color:red;"&gt;Url&lt;/SPAN&gt;&lt;SPAN style="color:blue;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color:blue;"&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://ags.pdc.org/arcgis/services/global/pdc_active_hazards/MapServer/WMSServer" rel="nofollow noopener noreferrer" target="_blank"&gt;http://ags.pdc.org/arcgis/services/global/pdc_active_hazards/MapServer/WMSServer&lt;/A&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color:red;"&gt;ProxyUrl&lt;/SPAN&gt;&lt;SPAN style="color:blue;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color:blue;"&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://serverapps.esri.com/SilverlightDemos/ProxyPage/proxy.ashx" rel="nofollow noopener noreferrer" target="_blank"&gt;http://serverapps.esri.com/SilverlightDemos/ProxyPage/proxy.ashx&lt;/A&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color:red;"&gt;SkipGetCapabilities&lt;/SPAN&gt;&lt;SPAN style="color:blue;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color:blue;"&gt;"False"&lt;/SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color:red;"&gt;Layers&lt;/SPAN&gt;&lt;SPAN style="color:blue;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color:blue;"&gt;"0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16"&lt;/SPAN&gt; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color:red;"&gt;Opacity&lt;/SPAN&gt;&lt;SPAN style="color:blue;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color:blue;"&gt;"0.9"&lt;/SPAN&gt;&lt;SPAN style="color:blue;"&gt; /&amp;gt;
&lt;/SPAN&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;and got this result :&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]14476[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Could you give more info on how to reproduce the issue.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 17:36:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/wmslayer-failure/m-p/382146#M9885</guid>
      <dc:creator>DominiqueBroux</dc:creator>
      <dc:date>2021-12-11T17:36:53Z</dc:date>
    </item>
    <item>
      <title>Re: WmsLayer failure</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/wmslayer-failure/m-p/382147#M9886</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for giving this a try dbroux. You've hightlighted an interesting distinction here.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I put in the WMS Layer as you did in XAML, at design time and got the expected results. What we're doing is giving users a basic form control that lists the layers available from a WMS service and letting them add them. so I've created and added WmsLayers in code behind. What is interesting is the URL I've been giving the WmsLayer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Keeping everything else the same, if I give it the URL:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;wLayer.Url = "http://ags.pdc.org/arcgis/services/global/pdc_active_hazards/MapServer/WMSServer";&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;It works just fine. I can set the Layers property to the chosen ID and get anything I like.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However I was prior setting the URL to this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;wLayer.Url = "http://ags.pdc.org/arcgis/services/global/pdc_active_hazards/MapServer/WMSServer?service=wms&amp;amp;request=getcapabilities";&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Which resulted in the crashes and errors I stated in my first post. I'm supposing that internally the WmsLayer constructs the necessary URL parameters for the getCapabilites request itself and that I was throwing it off by setting params in the URL string?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 May 2012 15:20:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/wmslayer-failure/m-p/382147#M9886</guid>
      <dc:creator>ZachPride</dc:creator>
      <dc:date>2012-05-21T15:20:52Z</dc:date>
    </item>
    <item>
      <title>Re: WmsLayer failure</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/wmslayer-failure/m-p/382148#M9887</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;OK that explains your issue.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You don't have to add the parameter 'request=getcapabilities' to the WMS layer URL. The type of request (get capabilities, get image, get legend, ...) is automaticlly added by the WMS layer depending on the current type of request.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 May 2012 06:20:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/wmslayer-failure/m-p/382148#M9887</guid>
      <dc:creator>DominiqueBroux</dc:creator>
      <dc:date>2012-05-22T06:20:45Z</dc:date>
    </item>
    <item>
      <title>Re: WmsLayer failure</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/wmslayer-failure/m-p/382149#M9888</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Okay so I'm still hitting an issue with this thing. I have the URL property set properly now: &lt;/SPAN&gt;&lt;A href="http://ags.pdc.org/arcgis/services/global/pdc_active_hazards/MapServer/WMSServer" rel="nofollow noopener noreferrer" target="_blank"&gt;http://ags.pdc.org/arcgis/services/global/pdc_active_hazards/MapServer/WMSServer&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've got SkipCapabilities set to false &amp;amp; the ProxyURL set to my local proxy.ashx&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When I run my application in debug in VS, it works. The layer is added and the overlay shows up. However, when I compile and host the site I get the same error I had in the beginning: Data at the root level is invalid.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm using this clientaccesspolicy.xml file:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;lt;?xml version="1.0" encoding="utf-8" ?&amp;gt;
&amp;lt;access-policy&amp;gt;
&amp;nbsp; &amp;lt;cross-domain-access&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;policy&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;allow-from http-request-headers="*"&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;!--It is almost always a security error for an HTTPS service to allow HTTP callers 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; since this allows the possibility for untrusted code to be injected into a legitimate service (a man in the middle attack) 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; and access data that is supposed to be secured via the HTTPS protocol.--&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;domain uri="*"/&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;domain uri="http://*"/&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/allow-from&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;grant-to&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;resource path="/" include-subpaths="true"/&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/grant-to&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/policy&amp;gt;
&amp;nbsp; &amp;lt;/cross-domain-access&amp;gt;
&amp;lt;/access-policy&amp;gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Since it works in debug it makes me think there is some kind of server configuration issue. Does a client access policy need to exist at the www root?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 17:36:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/wmslayer-failure/m-p/382149#M9888</guid>
      <dc:creator>ZachPride</dc:creator>
      <dc:date>2021-12-11T17:36:56Z</dc:date>
    </item>
    <item>
      <title>Re: WmsLayer failure</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/wmslayer-failure/m-p/382150#M9889</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Try using fiddler to look at the requests sent to the server. That might give a clue.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If your proxy is not in the same domain than your SL application, check that you set a crossdomain or clientaccesspolicy at the root of your proxy web server.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jun 2012 07:23:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/wmslayer-failure/m-p/382150#M9889</guid>
      <dc:creator>DominiqueBroux</dc:creator>
      <dc:date>2012-06-04T07:23:48Z</dc:date>
    </item>
  </channel>
</rss>

