<?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 Local Map Service will not Start. in .NET Maps SDK Questions</title>
    <link>https://community.esri.com/t5/net-maps-sdk-questions/local-map-service-will-not-start/m-p/1548641#M13066</link>
    <description>&lt;P&gt;I am not sure what I am missing.&amp;nbsp; I have the following code to display an mpkx file:&lt;/P&gt;&lt;P&gt;Map = new Map(BasemapStyle.ArcGISLightGray);&lt;BR /&gt;var myLocalMapService = new LocalMapService(@"c:\Temp\FabricParcels.mpkx");&lt;BR /&gt;await myLocalMapService.StartAsync();&amp;nbsp; &amp;nbsp; //CRASHES!&lt;/P&gt;&lt;P&gt;Map.OperationalLayers.Add(new ArcGISMapImageLayer(myLocalMapService.Url));&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The StartAsync command crashes with this message:&amp;nbsp;&lt;/P&gt;&lt;P&gt;Esri.ArcGISRuntime.Http.ArcGISWebException: 'Failed to create service fabricparcels MapServer. Worker process 'fabricparcels_host' exited while attempting to service request (attempt 1 of 1): endpoint='admin' headers={} params={enableDynamicLayers=, filePath=c:\temp\fabricparcels.mpkx, maxRecords=1000, name=fabricparcels, outputDir=C:\Users\xyzxyz\AppData\Local\Temp\localserver_23732\fabricparcels, type=MapServer, virtualDir=&lt;A href="http://127.0.0.1:50000/R4MwTp/outputdir/fabricparcels" target="_blank" rel="noopener"&gt;http://127.0.0.1:50000/R4MwTp/outputdir/fabricparcels&lt;/A&gt;} res='create' post=0 Crash dump path=C:\Users\xyzxyzx\AppData\Local\Temp\LocalServerErrorReports\localserver_200.1.0.3842_service_20241014_193914.dmp'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The mpkx file starts just fine by double-clicking it.&amp;nbsp; I am guessing I missed something basic, but I don't know what it is.&amp;nbsp; Please Help&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Brent Hoskisson&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 15 Oct 2024 13:39:46 GMT</pubDate>
    <dc:creator>BrentHoskisson</dc:creator>
    <dc:date>2024-10-15T13:39:46Z</dc:date>
    <item>
      <title>Local Map Service will not Start.</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/local-map-service-will-not-start/m-p/1548641#M13066</link>
      <description>&lt;P&gt;I am not sure what I am missing.&amp;nbsp; I have the following code to display an mpkx file:&lt;/P&gt;&lt;P&gt;Map = new Map(BasemapStyle.ArcGISLightGray);&lt;BR /&gt;var myLocalMapService = new LocalMapService(@"c:\Temp\FabricParcels.mpkx");&lt;BR /&gt;await myLocalMapService.StartAsync();&amp;nbsp; &amp;nbsp; //CRASHES!&lt;/P&gt;&lt;P&gt;Map.OperationalLayers.Add(new ArcGISMapImageLayer(myLocalMapService.Url));&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The StartAsync command crashes with this message:&amp;nbsp;&lt;/P&gt;&lt;P&gt;Esri.ArcGISRuntime.Http.ArcGISWebException: 'Failed to create service fabricparcels MapServer. Worker process 'fabricparcels_host' exited while attempting to service request (attempt 1 of 1): endpoint='admin' headers={} params={enableDynamicLayers=, filePath=c:\temp\fabricparcels.mpkx, maxRecords=1000, name=fabricparcels, outputDir=C:\Users\xyzxyz\AppData\Local\Temp\localserver_23732\fabricparcels, type=MapServer, virtualDir=&lt;A href="http://127.0.0.1:50000/R4MwTp/outputdir/fabricparcels" target="_blank" rel="noopener"&gt;http://127.0.0.1:50000/R4MwTp/outputdir/fabricparcels&lt;/A&gt;} res='create' post=0 Crash dump path=C:\Users\xyzxyzx\AppData\Local\Temp\LocalServerErrorReports\localserver_200.1.0.3842_service_20241014_193914.dmp'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The mpkx file starts just fine by double-clicking it.&amp;nbsp; I am guessing I missed something basic, but I don't know what it is.&amp;nbsp; Please Help&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Brent Hoskisson&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Oct 2024 13:39:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/local-map-service-will-not-start/m-p/1548641#M13066</guid>
      <dc:creator>BrentHoskisson</dc:creator>
      <dc:date>2024-10-15T13:39:46Z</dc:date>
    </item>
  </channel>
</rss>

