Debugging problems for Pro SDK in VS

2802
15
10-31-2016 03:48 AM
CollinKleiboer
New Contributor III


It seems I can't debug an ArcGIS Pro Addin in VS.
Every time it struggles and gives me a System.AggregateException.
It seems like the map is not being loaded well.
I've tried to do some changes in the firewall, but no results.
If I run the project directly, no problems. It happens only if I run it via debug in VS.
Any ideas?

"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.
"

0 Kudos
15 Replies
CollinKleiboer
New Contributor III

Win 10 pro

VS Community 2015 update 3

ArcGIS Pro 1.3

0 Kudos
Wolf
by Esri Regular Contributor
Esri Regular Contributor

Hi Collin,

 I configured a system using the configuration you listed: VS Community 2015 Update 3, Win 10 Pro, and Pro 1.3.  I have no problems debugging and running (without debugger) the sample code from your original email.  I don't think the problem you are seeing has anything to do with Pro 1.3.  Unfortunately there can be various other issues that prevent you from debugging like video drivers, security policy, custom system configuration (like custom well-known folder locations) and more.  I would recommend trying to reinstall VS 2015 once more and if that doesn't help contact Esri support.

0 Kudos
CollinKleiboer
New Contributor III

Hi Wolfgang,

Thanks for the research. I'll try to re-install / repair VS as you proposed. I'll share the results.

0 Kudos
CollinKleiboer
New Contributor III

VS and Pro repaired, but no effect, unfortunatelly.

0 Kudos
CollinKleiboer
New Contributor III

Fully uninstalled and installed VS2015 (Community). And also uninstalled and installed ArcGIS Pro. Installations with firewall and virusprotection disabled. Also done some restarts in between. No effect at all. Still the same problem.

I'm going to give it a go on a VM. 

0 Kudos
CollinKleiboer
New Contributor III

When I use a VM (win7, fresh VS2015community, fresh Pro 1.3.1) all goes well, luckily. I can debug again! 😉

Thank you all for the help, though!

0 Kudos