<?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 I keep getting Esri.ArcGISRuntime.Http.ArcGISWebException when trying to load .mpk file in .NET Maps SDK Questions</title>
    <link>https://community.esri.com/t5/net-maps-sdk-questions/i-keep-getting-esri-arcgisruntime-http/m-p/189935#M2233</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So firstly, I start the server with&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;LocalServer.Instance.StatusChanged += ServerStatusChanged;&lt;BR /&gt; await LocalServer.Instance.StartAsync();&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Then in the function&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;private async void ServerStatusChanged(object sender, StatusChangedEventArgs e)&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;I have these&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;if (e.Status == LocalServerStatus.Started)&lt;BR /&gt; {&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;_localMapService = new LocalMapService(Environment.CurrentDirectory + @"\Maps\Turceni_map.mpk");&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;_localMapService.StatusChanged += _localMapService_StatusChanged;&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;await _localMapService.StartAsync();&lt;BR /&gt; }&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;The exception is thrown when _localMapService tries to start. I have already verified the path is correct. Also, the server seems to start with no problem. What could be the cause ? I have also attached the class file&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 21 Jan 2018 10:20:02 GMT</pubDate>
    <dc:creator>FlorentinBoda2</dc:creator>
    <dc:date>2018-01-21T10:20:02Z</dc:date>
    <item>
      <title>I keep getting Esri.ArcGISRuntime.Http.ArcGISWebException when trying to load .mpk file</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/i-keep-getting-esri-arcgisruntime-http/m-p/189935#M2233</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So firstly, I start the server with&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;LocalServer.Instance.StatusChanged += ServerStatusChanged;&lt;BR /&gt; await LocalServer.Instance.StartAsync();&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Then in the function&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;private async void ServerStatusChanged(object sender, StatusChangedEventArgs e)&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;I have these&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;if (e.Status == LocalServerStatus.Started)&lt;BR /&gt; {&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;_localMapService = new LocalMapService(Environment.CurrentDirectory + @"\Maps\Turceni_map.mpk");&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;_localMapService.StatusChanged += _localMapService_StatusChanged;&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;await _localMapService.StartAsync();&lt;BR /&gt; }&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;The exception is thrown when _localMapService tries to start. I have already verified the path is correct. Also, the server seems to start with no problem. What could be the cause ? I have also attached the class file&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 21 Jan 2018 10:20:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/i-keep-getting-esri-arcgisruntime-http/m-p/189935#M2233</guid>
      <dc:creator>FlorentinBoda2</dc:creator>
      <dc:date>2018-01-21T10:20:02Z</dc:date>
    </item>
    <item>
      <title>Re: I keep getting Esri.ArcGISRuntime.Http.ArcGISWebException when trying to load .mpk file</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/i-keep-getting-esri-arcgisruntime-http/m-p/189936#M2234</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;EDIT:&lt;/STRONG&gt; I have resolved the issue, though it was very frustrating. I had to switch to &lt;STRONG&gt;JavaSDK&lt;/STRONG&gt; to figure it out, fortunately the exception was much more suggestive there. The problem was that I had to enable &lt;STRONG&gt;RUNTIME SUPPORT&lt;/STRONG&gt; in ArcMap before sharing the package. The option is found at&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;EM&gt;Customize &amp;gt; ArcMap Options &amp;gt; Enable ArcGIS Runtime Tools&lt;/EM&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 21 Jan 2018 20:00:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/i-keep-getting-esri-arcgisruntime-http/m-p/189936#M2234</guid>
      <dc:creator>FlorentinBoda2</dc:creator>
      <dc:date>2018-01-21T20:00:31Z</dc:date>
    </item>
  </channel>
</rss>

