<?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 Re: [Bug] WMS layer crashes if the data is invalid in ArcGIS Runtime SDK for WPF (Retired) Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/bug-wms-layer-crashes-if-the-data-is-invalid/m-p/651751#M3328</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Good catch. Should be fixed with the next version (10.2.2).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for reporting that.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 21 Feb 2014 05:55:31 GMT</pubDate>
    <dc:creator>DominiqueBroux</dc:creator>
    <dc:date>2014-02-21T05:55:31Z</dc:date>
    <item>
      <title>[Bug] WMS layer crashes if the data is invalid</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/bug-wms-layer-crashes-if-the-data-is-invalid/m-p/651750#M3327</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm experiencing a bug with an unhandeled exception using WMS layer. The layer is pointing to an url that returns an invalid result. This causes an unhandled xml exception to occur, interrupting the loading of maps. This also means that the LayersInitialized is not raised. I fixed this in a previous version of the Toolkit.DataSources, and was hoping it would have been fixed in 10.2.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The Url I'm testing against is &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.arcgis.com/sharing/content/items/c2c43e2a7269487785af7942533de9f9/data" rel="nofollow" target="_blank"&gt;http://www.arcgis.com/sharing/content/items/c2c43e2a7269487785af7942533de9f9/data&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The url returns a KMZ file, which is fine for the purpose of reproducing the error. I have noticed from time to time that our customers use a WMS service that sometimes returns invalid xml. Of course they should run against a WMS that always returns proper data, but that is outside of our control. Also, the site might be down, they have lost their internet connection through the proxy, or there could be other reasons why the returned data is not valid xml.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It would be great if you could fix this issue, so I don't have to build my own version of the toolkit whenever I upgrade &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is the exception I get.&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;Unhandeled exception System.Xml.XmlException: 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 System.Xml.Linq.XDocument.Parse(String text) &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) &amp;nbsp;&amp;nbsp; at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs) &amp;nbsp;&amp;nbsp; at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Feb 2014 09:31:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/bug-wms-layer-crashes-if-the-data-is-invalid/m-p/651750#M3327</guid>
      <dc:creator>BjørnarSundsbø</dc:creator>
      <dc:date>2014-02-20T09:31:21Z</dc:date>
    </item>
    <item>
      <title>Re: [Bug] WMS layer crashes if the data is invalid</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/bug-wms-layer-crashes-if-the-data-is-invalid/m-p/651751#M3328</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Good catch. Should be fixed with the next version (10.2.2).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for reporting that.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Feb 2014 05:55:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/bug-wms-layer-crashes-if-the-data-is-invalid/m-p/651751#M3328</guid>
      <dc:creator>DominiqueBroux</dc:creator>
      <dc:date>2014-02-21T05:55:31Z</dc:date>
    </item>
    <item>
      <title>Re: [Bug] WMS layer crashes if the data is invalid</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/bug-wms-layer-crashes-if-the-data-is-invalid/m-p/651752#M3329</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Good catch. Should be fixed with the next version (10.2.2).&lt;BR /&gt;&lt;BR /&gt;Thanks for reporting that.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have another related issue where the Initialized event is never raised. Still in the situation with connectivity issues with the internet: Using WmtsLayer/ArcGisTiledLayer (haven't pinpointed which one) never seem to time out, or the timeout is very long. I was wondering if perhaps the layer should give up at some point.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Secondly, add a MaximumResolution/MinimumResolution to the OverviewMap so that we can control how far in/out we can show. Sometimes the overview map doesn't really give any overview in rural areas, and looses it's purpose. If Maximum is set, the red square can't shrink out of oblivion &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; Perhaps this should have been added to a different post, but I figured I should combine the requests.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Feb 2014 06:05:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/bug-wms-layer-crashes-if-the-data-is-invalid/m-p/651752#M3329</guid>
      <dc:creator>BjørnarSundsbø</dc:creator>
      <dc:date>2014-02-21T06:05:31Z</dc:date>
    </item>
  </channel>
</rss>

