<?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: How to load MPK File in Runtime .Net in .NET Maps SDK Questions</title>
    <link>https://community.esri.com/t5/net-maps-sdk-questions/how-to-load-mpk-file-in-runtime-net/m-p/232813#M2785</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When I run that code example I get this error:&lt;BR /&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/86399_pastedImage_0.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;It fails on the StartAsync call. Thoughts?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 17 Apr 2015 16:12:45 GMT</pubDate>
    <dc:creator>JimFiddes</dc:creator>
    <dc:date>2015-04-17T16:12:45Z</dc:date>
    <item>
      <title>How to load MPK File in Runtime .Net</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/how-to-load-mpk-file-in-runtime-net/m-p/232811#M2783</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm digging through examples on how to load a local mpk into my .net map and I don't see how to do this. There are old references to&amp;nbsp; ArcGISLocalDynamicMapServiceLayer but that isn't available now. The mpk was constructed in ArcMap 10.2 and the layers exist within a GeoDatabase. I am using 10.2.5 build of .Net as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If someone can point me in the right direction I would appreciate it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Jim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Apr 2015 20:20:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/how-to-load-mpk-file-in-runtime-net/m-p/232811#M2783</guid>
      <dc:creator>JimFiddes</dc:creator>
      <dc:date>2015-04-16T20:20:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to load MPK File in Runtime .Net</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/how-to-load-mpk-file-in-runtime-net/m-p/232812#M2784</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jim,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the way to add mpk layer to the map, you just need to use &lt;A href="https://developers.arcgis.com/net/desktop/api-reference//html/T_Esri_ArcGISRuntime_Layers_ArcGISDynamicMapServiceLayer.htm"&gt;ArcGISDynamicMapServiceLayer &lt;/A&gt;and the ServiceUri will be a &lt;A href="https://developers.arcgis.com/net/desktop/api-reference//html/T_Esri_ArcGISRuntime_LocalServices_LocalMapService.htm"&gt;LocalMapService&lt;/A&gt;.&lt;A href="https://developers.arcgis.com/net/desktop/api-reference//html/P_Esri_ArcGISRuntime_LocalServices_LocalMapService_UrlMapService.htm"&gt;UrlMapService &lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LocalMapService localMapService = new LocalMapService("mpk file path");&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; await localMapService.StartAsync();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ArcGISDynamicMapServiceLayer arcGISDynamicMapServiceLayer = new ArcGISDynamicMapServiceLayer() &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ID = "arcGISDynamicMapServiceLayer",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ServiceUri = localMapService.UrlMapService,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; };&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; MyMapView.Map.Layers.Add(arcGISDynamicMapServiceLayer);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And there is a sample for that on &lt;A href="https://github.com/Esri/arcgis-runtime-samples-dotnet"&gt;GitHub&lt;/A&gt;​.&amp;nbsp; ArcGIS .NET Samples, in Desktop Samples &amp;gt; Layers &amp;gt; Dynamic Service Layer &amp;gt; &lt;A href="https://github.com/Esri/arcgis-runtime-samples-dotnet/blob/master/src/Desktop/ArcGISRuntimeSDKDotNet_DesktopSamples/Samples/DynamicServiceLayers/ArcGISDynamicMapServiceLayerLocalSample.xaml.cs"&gt;ArcGIS Local Dynamic Service Layer Sample&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Asser&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Apr 2015 21:47:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/how-to-load-mpk-file-in-runtime-net/m-p/232812#M2784</guid>
      <dc:creator>AsserSwelam1</dc:creator>
      <dc:date>2015-04-16T21:47:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to load MPK File in Runtime .Net</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/how-to-load-mpk-file-in-runtime-net/m-p/232813#M2785</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When I run that code example I get this error:&lt;BR /&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/86399_pastedImage_0.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;It fails on the StartAsync call. Thoughts?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Apr 2015 16:12:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/how-to-load-mpk-file-in-runtime-net/m-p/232813#M2785</guid>
      <dc:creator>JimFiddes</dc:creator>
      <dc:date>2015-04-17T16:12:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to load MPK File in Runtime .Net</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/how-to-load-mpk-file-in-runtime-net/m-p/232814#M2786</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That is not an error - it is just the license protection warning. When the time comes to deploy your app, you will need to licensed your application at the Standard level (either by having an Organizational user sign in or by setting a Standard license code) and that message will no longer be displayed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For more information see &lt;A href="https://developers.arcgis.com/net/desktop/guide/license-your-app.htm" title="https://developers.arcgis.com/net/desktop/guide/license-your-app.htm"&gt;License your app—ArcGIS Runtime SDK for .NET | ArcGIS for Developers&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Apr 2015 16:28:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/how-to-load-mpk-file-in-runtime-net/m-p/232814#M2786</guid>
      <dc:creator>MichaelBranscomb</dc:creator>
      <dc:date>2015-04-17T16:28:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to load MPK File in Runtime .Net</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/how-to-load-mpk-file-in-runtime-net/m-p/232815#M2787</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think Jim was talking about the "StartAsync" call (not the pop-up window).&amp;nbsp; I think you need to start a local server to run this correct?&amp;nbsp; And you need the standard level license to run a local server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Joe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Feb 2016 18:22:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/how-to-load-mpk-file-in-runtime-net/m-p/232815#M2787</guid>
      <dc:creator>JoeMadrigal</dc:creator>
      <dc:date>2016-02-05T18:22:04Z</dc:date>
    </item>
  </channel>
</rss>

