Just added DockPane to my custom ArcGIS Pro Add-In. My Add-In currently has 2 MapTool Buttons and a regular Button tool already defined and I'm now adding a Dockpane tool. I'm getting an AggregateException everytime I show the Dockpane but I have not added any code beyond the boiler plate code added by the SDK template (i.e. Add/New Item/Dock Panel). It does NOT crash when the Dockpane is first shown but if I wait about 30 seconds or less this exception is thrown:
System.AggregateException was unhandled
Message: An unhandled exception of type 'System.AggregateException' occurred in mscorlib.dll
Additional information: A Task's exception(s) were not observed either by Waiting on the Task or accessing its Exception property. As a result, the unobserved exception was rethrown by the finalizer thread.
Attached are the threads that are running when this crash happens...