Select to view content in your preferred language

ArcGIS SDK project won't build add-ins

842
2
Jump to solution
06-19-2019 04:28 PM
BinhLe2
Occasional Contributor

I have encountered a problem with Visual Studio giving me this error: 

An unhandled exception of type 'System.NullReferenceException' occurred in ArcGIS.Desktop.Framework.dll
Object reference not set to an instance of an object.

I am working in ArcGIS Pro 2.3.3 using ArcGIS Pro SDK 2.3

I am just trying to build a basic button from the tutorial like this one:

https://developers.arcgis.com/labs/pro/build-your-first-add-in/

I download the solution to build it and I get that error.

However I can build the .NET projects:

https://developers.arcgis.com/labs/net/add-layers-to-a-map/

Has anyone seen this error? I cannot build any ArcGIS Pro addins right now.

0 Kudos
1 Solution

Accepted Solutions
by Anonymous User
Not applicable

Hello, the downloadable solution for the "Build your first add-in" DevLab works fine with the Pro and Pro SDK versions  you have installed.  I would recommend downloading again and trying it.  In addition to the DevLabs there are many full solution samples you can try at:  https://github.com/esri/arcgis-pro-sdk-community-samples

View solution in original post

2 Replies
by Anonymous User
Not applicable

Hello, the downloadable solution for the "Build your first add-in" DevLab works fine with the Pro and Pro SDK versions  you have installed.  I would recommend downloading again and trying it.  In addition to the DevLabs there are many full solution samples you can try at:  https://github.com/esri/arcgis-pro-sdk-community-samples

BinhLe2
Occasional Contributor

Christopher,

Thanks for the confirmation. I went in and deleted all the Addins in ArcGIS Pro to start over and that seems to help. One of the addins I was trying to build was causing this error!