Troubleshooting
Widget, map tool, or feature action is not listed in the application
If a custom widget is not listed as expected in the Add Widget dialog box, check the following points. These also apply to a custom map tool and feature action not being listed where expected.
- First ensure the class constructor is not throwing an exception.
- If debugging an add-in project from Visual Studio, check /addinpath argument is correctly referencing the folder containing the add-in binary. If add-in projects are copied or moved, this path may need updating manually.
- Check the Export declaration on the class; widgets must have an Export attribute with the value ESRI.ArcGIS.OperationsDashboard.Widget, map tools must have an Export attribute with the value ESRI.ArcGIS.OperationsDashboard.MapTool, and feature actions must have an Export attribute with the value ESRI.ArcGIS.OperationsDashboard.FeatureAction.
- Try using the Microsoft Fusion Log Viewer (FusLogVw) provided with Visual Studio, to see if your add-in assembly is being loaded by the application. Refer to MSDN for instructions on using this tool.
The application no longer starts up
If the application no longer starts as expected after developing add-ins:
- Clear the local add-in cache, found under \<My Documents>\ArcGIS\Addins\OperationsDashboard.
- Remove the cached application settings, found under \Users\<Username>\AppData\Local\ESRI. Note that this will remove the recent items lists, and any other settings changed by the user.
All built-in widgets are listed twice in the application
If the Add Widget dialog box lists all built-in widgets twice when a custom add-in is loaded into the application, check that the ESRI.ArcGIS.OperationsDashboard assembly reference in the add-in project has the CopyLocal property set to False. Also check the folder referenced in the /addinpath startup argument does not contain a copy of this assembly. Delete any spare copies of this assembly; the correct single location of this assembly during development is the \SDK\OperationsDashboard subfolder of the ArcGIS Runtime SDK for WPF install folder.