<?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: SetupDecoderFromUriOrStream when loading Map from ArcGIS in ArcGIS Runtime SDK for WPF (Retired) Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/setupdecoderfromuriorstream-when-loading-map-from/m-p/540919#M2758</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks, i will make sure i will report bugs throught the Beta community website in the future. (just found out that's possible as well)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 12 Nov 2011 21:39:35 GMT</pubDate>
    <dc:creator>BKuiper</dc:creator>
    <dc:date>2011-11-12T21:39:35Z</dc:date>
    <item>
      <title>SetupDecoderFromUriOrStream when loading Map from ArcGIS</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/setupdecoderfromuriorstream-when-loading-map-from/m-p/540917#M2756</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;It seems that Esri is doing some updates on some of their maps which causes this following exception to be thrown:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;System.NotSupportedException
No imaging component suitable to complete this operation was found.
&amp;nbsp;&amp;nbsp; at System.Windows.Media.Imaging.BitmapDecoder.SetupDecoderFromUriOrStream(Uri uri, Stream stream, BitmapCacheOption cacheOption, Guid&amp;amp; clsId, Boolean&amp;amp; isOriginalWritable, Stream&amp;amp; uriStream, UnmanagedMemoryStream&amp;amp; unmanagedMemoryStream, SafeFileHandle&amp;amp; safeFilehandle)
&amp;nbsp;&amp;nbsp; at System.Windows.Media.Imaging.BitmapDecoder.CreateFromUriOrStream(Uri baseUri, Uri uri, Stream stream, BitmapCreateOptions createOptions, BitmapCacheOption cacheOption, RequestCachePolicy uriCachePolicy, Boolean insertInDecoderCache)
&amp;nbsp;&amp;nbsp; at System.Windows.Media.Imaging.BitmapImage.FinalizeCreation()
&amp;nbsp;&amp;nbsp; at System.Windows.Media.Imaging.BitmapImage.EndInit()
&amp;nbsp;&amp;nbsp; at ESRI.ArcGIS.Client.TiledLayer.tileLoadCompleted(ImageTileInfo data, Stream imgStream, Exception error)
&amp;nbsp;&amp;nbsp; at ESRI.ArcGIS.Client.TiledLayer.client_DownloadDataCompleted(Object sender, DownloadDataCompletedEventArgs e)
&amp;nbsp;&amp;nbsp; at System.Net.WebClient.OnDownloadDataCompleted(DownloadDataCompletedEventArgs e)
&amp;nbsp;&amp;nbsp; at System.Net.WebClient.DownloadDataOperationCompleted(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;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How can I catch this exception for the layer ? It seems this exception is now thrown on a background thread and crashes the whole app. This exception should be reported to InitializationFailed on the Layer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It happens when loading the following through XAML&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;esri:ArcGISTiledMapServiceLayer ID="BaseLayer" 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Url="http://services.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer" /&amp;gt;&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Nov 2011 14:44:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/setupdecoderfromuriorstream-when-loading-map-from/m-p/540917#M2756</guid>
      <dc:creator>BKuiper</dc:creator>
      <dc:date>2011-11-10T14:44:09Z</dc:date>
    </item>
    <item>
      <title>Re: SetupDecoderFromUriOrStream when loading Map from ArcGIS</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/setupdecoderfromuriorstream-when-loading-map-from/m-p/540918#M2757</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;Thanks for the post - we'll investigate.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Mike&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 12 Nov 2011 09:49:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/setupdecoderfromuriorstream-when-loading-map-from/m-p/540918#M2757</guid>
      <dc:creator>MichaelBranscomb</dc:creator>
      <dc:date>2011-11-12T09:49:01Z</dc:date>
    </item>
    <item>
      <title>Re: SetupDecoderFromUriOrStream when loading Map from ArcGIS</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/setupdecoderfromuriorstream-when-loading-map-from/m-p/540919#M2758</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks, i will make sure i will report bugs throught the Beta community website in the future. (just found out that's possible as well)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 12 Nov 2011 21:39:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/setupdecoderfromuriorstream-when-loading-map-from/m-p/540919#M2758</guid>
      <dc:creator>BKuiper</dc:creator>
      <dc:date>2011-11-12T21:39:35Z</dc:date>
    </item>
  </channel>
</rss>

