<?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 Empty TileCache source doesn't throw any exception in ArcGIS Runtime SDK for WPF (Retired) Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/empty-tilecache-source-doesn-t-throw-any-exception/m-p/715038#M3643</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using compact cache "bundle" files to build basemap layer. If i pass empty folder path to &lt;STRONG&gt;TileCache&lt;/STRONG&gt; constructor, SDK doesn't throw any exception and executes code successfully.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Before constructing basemap i want to check valid cache and throw exception in app. I observed that there is no change in&amp;nbsp;&lt;STRONG&gt;LoadStatus,LoadError &lt;/STRONG&gt;properties&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;regardless of data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sample code:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;ArcGISTiledLayer imageLayer = new ArcGISTiledLayer(new TileCache("PATH"));&lt;/P&gt;&lt;P&gt;ArcGISTiledLayer topolayer = new ArcGISTiledLayer(new TileCache(&lt;SPAN style="background-color: #f6f6f6;"&gt;"PATH"&lt;/SPAN&gt;));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;List&amp;lt;Layer&amp;gt; basemapLayers = new List&amp;lt;Layer&amp;gt;();&lt;/P&gt;&lt;P&gt;basemapLayers.Add(imageLayer);&lt;BR /&gt; basemapLayers.Add(topolayer);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Map = new Map(new Basemap(&lt;SPAN&gt;basemapLayers)&lt;/SPAN&gt;);&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Yes I can check if files are present in folder or not but i am looking for valid exception from SDK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SDK Version : WPF 100.5&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would be appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Prashant&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 06 Sep 2019 06:41:59 GMT</pubDate>
    <dc:creator>PrashantKirpan</dc:creator>
    <dc:date>2019-09-06T06:41:59Z</dc:date>
    <item>
      <title>Empty TileCache source doesn't throw any exception</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/empty-tilecache-source-doesn-t-throw-any-exception/m-p/715038#M3643</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using compact cache "bundle" files to build basemap layer. If i pass empty folder path to &lt;STRONG&gt;TileCache&lt;/STRONG&gt; constructor, SDK doesn't throw any exception and executes code successfully.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Before constructing basemap i want to check valid cache and throw exception in app. I observed that there is no change in&amp;nbsp;&lt;STRONG&gt;LoadStatus,LoadError &lt;/STRONG&gt;properties&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;regardless of data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sample code:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;ArcGISTiledLayer imageLayer = new ArcGISTiledLayer(new TileCache("PATH"));&lt;/P&gt;&lt;P&gt;ArcGISTiledLayer topolayer = new ArcGISTiledLayer(new TileCache(&lt;SPAN style="background-color: #f6f6f6;"&gt;"PATH"&lt;/SPAN&gt;));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;List&amp;lt;Layer&amp;gt; basemapLayers = new List&amp;lt;Layer&amp;gt;();&lt;/P&gt;&lt;P&gt;basemapLayers.Add(imageLayer);&lt;BR /&gt; basemapLayers.Add(topolayer);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Map = new Map(new Basemap(&lt;SPAN&gt;basemapLayers)&lt;/SPAN&gt;);&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Yes I can check if files are present in folder or not but i am looking for valid exception from SDK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SDK Version : WPF 100.5&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would be appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Prashant&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Sep 2019 06:41:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/empty-tilecache-source-doesn-t-throw-any-exception/m-p/715038#M3643</guid>
      <dc:creator>PrashantKirpan</dc:creator>
      <dc:date>2019-09-06T06:41:59Z</dc:date>
    </item>
  </channel>
</rss>

