<?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 Windows Store App - Subsequent Initialization when Client ID is Incorrect? in .NET Maps SDK Questions</title>
    <link>https://community.esri.com/t5/net-maps-sdk-questions/windows-store-app-subsequent-initialization-when/m-p/242015#M2839</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, &lt;/P&gt;&lt;P&gt;I am developing a Windows Store App using the ArcGIS Runtime SDK for .Net.&amp;nbsp; To initialize the environment, I am using the sample code provided: &lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="n"&gt;Esri&lt;/SPAN&gt;&lt;SPAN class="p"&gt;.&lt;/SPAN&gt;&lt;SPAN class="n"&gt;ArcGISRuntime&lt;/SPAN&gt;&lt;SPAN class="p"&gt;.&lt;/SPAN&gt;&lt;SPAN class="n"&gt;ArcGISRuntimeEnvironment&lt;/SPAN&gt;&lt;SPAN class="p"&gt;.&lt;/SPAN&gt;&lt;SPAN class="n"&gt;ClientId&lt;/SPAN&gt; &lt;SPAN class="p"&gt;=&lt;/SPAN&gt; &lt;SPAN class="s"&gt;"mYcLieNTid"&lt;/SPAN&gt;&lt;SPAN class="p"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&lt;SPAN class="k"&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="k"&gt;try&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="p"&gt;{&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="n"&gt;Esri&lt;/SPAN&gt;&lt;SPAN class="p"&gt;.&lt;/SPAN&gt;&lt;SPAN class="n"&gt;ArcGISRuntime&lt;/SPAN&gt;&lt;SPAN class="p"&gt;.&lt;/SPAN&gt;&lt;SPAN class="n"&gt;ArcGISRuntimeEnvironment&lt;/SPAN&gt;&lt;SPAN class="p"&gt;.&lt;/SPAN&gt;&lt;SPAN class="n"&gt;Initialize&lt;/SPAN&gt;&lt;SPAN class="p"&gt;();&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="p"&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="k"&gt;catch&lt;/SPAN&gt; &lt;SPAN class="p"&gt;(&lt;/SPAN&gt;&lt;SPAN class="n"&gt;Exception&lt;/SPAN&gt; &lt;SPAN class="n"&gt;ex&lt;/SPAN&gt;&lt;SPAN class="p"&gt;)&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="p"&gt;{ &lt;/SPAN&gt;&lt;SPAN class="p"&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&lt;SPAN class="p"&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If an incorrect client ID is used, I will hit the catch clause with an "invalid client ID" message as expected.&amp;nbsp; The problem is that when I set the client ID again, it causes an exception with the message "you can't set the client ID after initializing" or a win32 runtime error on the Initialize() method.&amp;nbsp; I have tried setting the client ID to null before setting again, but that gave me the same results.&amp;nbsp; Any ideas?&amp;nbsp; The only way I seem to be able to try to initialize the environment again is by shutting the app down completely.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 05 Dec 2014 16:25:18 GMT</pubDate>
    <dc:creator>SchuylerDuarte</dc:creator>
    <dc:date>2014-12-05T16:25:18Z</dc:date>
    <item>
      <title>Windows Store App - Subsequent Initialization when Client ID is Incorrect?</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/windows-store-app-subsequent-initialization-when/m-p/242015#M2839</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, &lt;/P&gt;&lt;P&gt;I am developing a Windows Store App using the ArcGIS Runtime SDK for .Net.&amp;nbsp; To initialize the environment, I am using the sample code provided: &lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="n"&gt;Esri&lt;/SPAN&gt;&lt;SPAN class="p"&gt;.&lt;/SPAN&gt;&lt;SPAN class="n"&gt;ArcGISRuntime&lt;/SPAN&gt;&lt;SPAN class="p"&gt;.&lt;/SPAN&gt;&lt;SPAN class="n"&gt;ArcGISRuntimeEnvironment&lt;/SPAN&gt;&lt;SPAN class="p"&gt;.&lt;/SPAN&gt;&lt;SPAN class="n"&gt;ClientId&lt;/SPAN&gt; &lt;SPAN class="p"&gt;=&lt;/SPAN&gt; &lt;SPAN class="s"&gt;"mYcLieNTid"&lt;/SPAN&gt;&lt;SPAN class="p"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&lt;SPAN class="k"&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="k"&gt;try&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="p"&gt;{&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="n"&gt;Esri&lt;/SPAN&gt;&lt;SPAN class="p"&gt;.&lt;/SPAN&gt;&lt;SPAN class="n"&gt;ArcGISRuntime&lt;/SPAN&gt;&lt;SPAN class="p"&gt;.&lt;/SPAN&gt;&lt;SPAN class="n"&gt;ArcGISRuntimeEnvironment&lt;/SPAN&gt;&lt;SPAN class="p"&gt;.&lt;/SPAN&gt;&lt;SPAN class="n"&gt;Initialize&lt;/SPAN&gt;&lt;SPAN class="p"&gt;();&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="p"&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="k"&gt;catch&lt;/SPAN&gt; &lt;SPAN class="p"&gt;(&lt;/SPAN&gt;&lt;SPAN class="n"&gt;Exception&lt;/SPAN&gt; &lt;SPAN class="n"&gt;ex&lt;/SPAN&gt;&lt;SPAN class="p"&gt;)&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="p"&gt;{ &lt;/SPAN&gt;&lt;SPAN class="p"&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&lt;SPAN class="p"&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If an incorrect client ID is used, I will hit the catch clause with an "invalid client ID" message as expected.&amp;nbsp; The problem is that when I set the client ID again, it causes an exception with the message "you can't set the client ID after initializing" or a win32 runtime error on the Initialize() method.&amp;nbsp; I have tried setting the client ID to null before setting again, but that gave me the same results.&amp;nbsp; Any ideas?&amp;nbsp; The only way I seem to be able to try to initialize the environment again is by shutting the app down completely.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Dec 2014 16:25:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/windows-store-app-subsequent-initialization-when/m-p/242015#M2839</guid>
      <dc:creator>SchuylerDuarte</dc:creator>
      <dc:date>2014-12-05T16:25:18Z</dc:date>
    </item>
  </channel>
</rss>

