I have added a Add-in Module project in Visualt Studio with default settings and added a ArcGIS Pro Dockpane with BurgerButton control with default settings - no changes at all. When running the project I get a NullReferenceException before hitting any breakpoints in the code and before ArcGIS Pro has launched. I see the ArcGIS Pro splash screen and then I get the exception in Visual Studio. Adding an ArcGIS Pro Button works.
The error message is: "An unhandled exception of type 'System.NullReferenceException' occurred in mscorlib.dll"
I am using Visual Studio 2015 Update 3 and ArcGIS Pro SDK 1.4.0.7198.
Any ideas?
Best Regards
Jonas
Solved! Go to Solution.
I was actually running ArcGIS Pro 1.4. After updating to 1.4.1 the problem is gone.
Thx.
Hi Jonas,
I tried this using ArcGIS Pro 1.4.1 (same build as yours) and VS 2015 Update 3, C# and can't find any problems. Having experienced similar issues in the past I usually traced it to another add-in, in which case removing all add-ins fixed the problem. In a rare case I traced an issue to left-over configuration files (in the Pro / bin folder) that I played with on previous installations of Pro and then forgot to remove before upgrading my Pro version. If you have done anything like this, I recommend to uninstall Pro, check for any left over files, remove them, and then reinstall Pro.
I was actually running ArcGIS Pro 1.4. After updating to 1.4.1 the problem is gone.
Thx.