NullReferenceException when launching with default dockpane with burgerbutton

968
2
Jump to solution
06-07-2017 06:16 AM
JonasEngedal1
New Contributor II

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

Tags (1)
0 Kudos
1 Solution

Accepted Solutions
JonasEngedal1
New Contributor II

I was actually running ArcGIS Pro 1.4. After updating to 1.4.1 the problem is gone.

Thx.

View solution in original post

0 Kudos
2 Replies
Wolf
by Esri Regular Contributor
Esri Regular Contributor

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.    

0 Kudos
JonasEngedal1
New Contributor II

I was actually running ArcGIS Pro 1.4. After updating to 1.4.1 the problem is gone.

Thx.

0 Kudos