<?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: LocalMapService StartAsync - A task was cancelled in .NET Maps SDK Questions</title>
    <link>https://community.esri.com/t5/net-maps-sdk-questions/localmapservice-startasync-a-task-was-cancelled/m-p/426384#M5167</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Increasing the memory on machine I had thought cured this occurring&amp;nbsp;within Visual Studio but it has just recurred. I've restarted Visual Studio, cleared out any ArcGISRuntime folders within C:\Users\robert.haines\AppData\Local\Temp\ and even restarted my machine and it is still occurring.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It also fails every time on my line manager machine in this manner.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 03 Jul 2018 09:49:51 GMT</pubDate>
    <dc:creator>RobertHaines</dc:creator>
    <dc:date>2018-07-03T09:49:51Z</dc:date>
    <item>
      <title>LocalMapService StartAsync - A task was cancelled</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/localmapservice-startasync-a-task-was-cancelled/m-p/426383#M5166</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;During the upgrade of our winforms application from 10.2.5 to 100.2 the starting of the local map service (working with a MPK file) would regularly fail within Visual Studio after working for a couple of&amp;nbsp; hours with no issues. The Esri.ArcGISRuntime.LocalServices.LocalMapService StartAsync call would return 'A task was cancelled'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can force the same behaviour on our test environment by opening map windows within multiple copies of our application at the same time. There is plenty of free memory available when this happens. The stack trace is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at Esri.ArcGISRuntime.LocalServices.LocalService.&amp;lt;StartServiceInternal&amp;gt;d__25.MoveNext()&lt;BR /&gt;--- End of stack trace from previous location where exception was thrown ---&lt;BR /&gt;&amp;nbsp;&amp;nbsp; at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; at System.Runtime.CompilerServices.TaskAwaiter.GetResult()&lt;BR /&gt;&amp;nbsp;&amp;nbsp; at ...SpatialMapControl.VB$StateMachine_128_LoadAsync.MoveNext() in ..\SpatialMapControl.xaml.vb:line 418&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If possible it would be good to get an understanding of why this might happen so that we can try to reduce the likelihood of this occurring in a production environment.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jun 2018 08:55:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/localmapservice-startasync-a-task-was-cancelled/m-p/426383#M5166</guid>
      <dc:creator>RobertHaines</dc:creator>
      <dc:date>2018-06-14T08:55:03Z</dc:date>
    </item>
    <item>
      <title>Re: LocalMapService StartAsync - A task was cancelled</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/localmapservice-startasync-a-task-was-cancelled/m-p/426384#M5167</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Increasing the memory on machine I had thought cured this occurring&amp;nbsp;within Visual Studio but it has just recurred. I've restarted Visual Studio, cleared out any ArcGISRuntime folders within C:\Users\robert.haines\AppData\Local\Temp\ and even restarted my machine and it is still occurring.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It also fails every time on my line manager machine in this manner.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jul 2018 09:49:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/localmapservice-startasync-a-task-was-cancelled/m-p/426384#M5167</guid>
      <dc:creator>RobertHaines</dc:creator>
      <dc:date>2018-07-03T09:49:51Z</dc:date>
    </item>
    <item>
      <title>Re: LocalMapService StartAsync - A task was cancelled</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/localmapservice-startasync-a-task-was-cancelled/m-p/426385#M5168</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;It would be useful to see the code you're using to start/stop the local&amp;nbsp;service, although I suspect that's not the cause in this case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you able to share you map package file? We can try to repro. There's a 10MB limit on Geonet,&amp;nbsp;assuming it's larger than that you can email &lt;A href="mailto:mbranscomb@esri.com"&gt;mbranscomb@esri.com&lt;/A&gt;&amp;nbsp;with download details or to request a location to upload the mpk.&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>Tue, 03 Jul 2018 15:54:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/localmapservice-startasync-a-task-was-cancelled/m-p/426385#M5168</guid>
      <dc:creator>MichaelBranscomb</dc:creator>
      <dc:date>2018-07-03T15:54:22Z</dc:date>
    </item>
  </channel>
</rss>

