<?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: TaskCanceledException when debugging in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/taskcanceledexception-when-debugging/m-p/875095#M5382</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Stephen,&lt;/P&gt;&lt;P&gt;&amp;nbsp;We have brought this issue to the attention of the Pro development team.&amp;nbsp; In our observation there are some workflows in ArcGIS Pro (without any add-ins installed) that will produce the same problem you described, so it is actually not related to the API or the SDK.&amp;nbsp; Hopefully the ArcGIS Pro development team can resolve this issue soon, however, it turns out that this exception (when thrown during shutdown as you described) can be safely ignored in your debugging session by using 'continue debug' or just stopping the debug session (which is what I usually do).&amp;nbsp; Sorry about the inconvenience.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Wolf&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 13 Sep 2018 03:26:48 GMT</pubDate>
    <dc:creator>Wolf</dc:creator>
    <dc:date>2018-09-13T03:26:48Z</dc:date>
    <item>
      <title>TaskCanceledException when debugging</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/taskcanceledexception-when-debugging/m-p/875094#M5381</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I recently upgraded to Pro 2.2 and&amp;nbsp;started getting a TaskCanceledException when I close Pro with a debugger (VS 2015) attached. I created a simple add-in, just a ribbon tab with a dock pane, and now the exception is thrown every time I close Pro with the dock pane open. The dock pane has some controls on it, but no code runs without user interaction. I found this article in the Runtime forums, but&amp;nbsp;can't get the solution to work with Pro:&amp;nbsp;&lt;A href="https://community.esri.com/thread/210523"&gt;TaskCanceledException on shutdown&lt;/A&gt;&amp;nbsp;When Pro runs without a debugger, it closes just fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unchecking the "Break when this type of exception is thrown" checkbox isn't working either. Visual Studio&amp;nbsp;ignores that selection, which seems like a bug within VS, but I'd still like to know why the TaskCanceledException is thrown and how to process/ignore it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;System.Threading.Tasks.TaskCanceledException was unhandled&lt;BR /&gt;Message: An unhandled exception of type 'System.Threading.Tasks.TaskCanceledException' occurred in WindowsBase.dll&lt;BR /&gt;Additional information: A task was canceled.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*************** Edit &lt;SPAN&gt;***************&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I found more details today. An uncaught error occurred in my&amp;nbsp;dock pane within a QueuedTask. When Pro crashed, the exception message was different (see below). Not sure if they're related, but since tasking is mentioned, I figured they might be. Also of note, that file doesn't exist on my machine, and the inner exception is inaccessible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;System.Exception was unhandled&lt;BR /&gt;Message: An unhandled exception of type 'System.Exception' occurred in mscorlib.dll&lt;BR /&gt;Additional information: Exception while waiting for a Task to complete. Caller: ClearFinishedTasksImpl, File: C:\ArcGIS\ArcGISDesktop\ArcGISEditing\ArcGIS.Desktop.Editing\EditLib\Awaitable.cs, Line: 358. See the inner exception for additional information.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Sep 2018 17:02:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/taskcanceledexception-when-debugging/m-p/875094#M5381</guid>
      <dc:creator>StephenRhea2</dc:creator>
      <dc:date>2018-09-11T17:02:02Z</dc:date>
    </item>
    <item>
      <title>Re: TaskCanceledException when debugging</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/taskcanceledexception-when-debugging/m-p/875095#M5382</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Stephen,&lt;/P&gt;&lt;P&gt;&amp;nbsp;We have brought this issue to the attention of the Pro development team.&amp;nbsp; In our observation there are some workflows in ArcGIS Pro (without any add-ins installed) that will produce the same problem you described, so it is actually not related to the API or the SDK.&amp;nbsp; Hopefully the ArcGIS Pro development team can resolve this issue soon, however, it turns out that this exception (when thrown during shutdown as you described) can be safely ignored in your debugging session by using 'continue debug' or just stopping the debug session (which is what I usually do).&amp;nbsp; Sorry about the inconvenience.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Wolf&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Sep 2018 03:26:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/taskcanceledexception-when-debugging/m-p/875095#M5382</guid>
      <dc:creator>Wolf</dc:creator>
      <dc:date>2018-09-13T03:26:48Z</dc:date>
    </item>
    <item>
      <title>Re: TaskCanceledException when debugging</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/taskcanceledexception-when-debugging/m-p/875096#M5383</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the info, Wolf, and glad to know the Pro dev team knows about it. I'll keep my eyes out for&amp;nbsp;their fix.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Sep 2018 12:56:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/taskcanceledexception-when-debugging/m-p/875096#M5383</guid>
      <dc:creator>StephenRhea2</dc:creator>
      <dc:date>2018-09-14T12:56:34Z</dc:date>
    </item>
  </channel>
</rss>

