Select to view content in your preferred language

My custom application settings page does not load, wait indicator does not terminate

400
1
Jump to solution
11-09-2022 08:41 AM
Stefan_Offermann
Occasional Contributor

I followed this guide to implement a page with settings for my ArcGIS Pro AddIn (for 2.9.x):

https://github.com/esri/arcgis-pro-sdk/wiki/ProGuide-Custom-settings#custom-application-settings

When I open the Options dialog, it works on my machine.

When I install the Add In on the customers machine, and I open the Options dialog, there is a wait indicator which does not stop. My page is never shown. What can be wrong here?

Stefan_Offermann_0-1668011977236.png

The version of Pro is exactly the same on both machines:

Stefan_Offermann_1-1668012036428.pngStefan_Offermann_2-1668012053307.png

 

 

0 Kudos
1 Solution

Accepted Solutions
Stefan_Offermann
Occasional Contributor

The problem was a Setting of type Date, which had no default value:

Stefan_Offermann_0-1668076714776.png

 

After setting a reasonable value, the Options page loaded:

Stefan_Offermann_1-1668076746325.png

 

This line of code failed in the InitializeAsync() method:

StartDate = _startDateOrig = Settings.Default.StartDate;

 

View solution in original post

0 Kudos
1 Reply
Stefan_Offermann
Occasional Contributor

The problem was a Setting of type Date, which had no default value:

Stefan_Offermann_0-1668076714776.png

 

After setting a reasonable value, the Options page loaded:

Stefan_Offermann_1-1668076746325.png

 

This line of code failed in the InitializeAsync() method:

StartDate = _startDateOrig = Settings.Default.StartDate;

 

0 Kudos