laptop and a wrench

Bug

The error message, "The given key was not present in the dictionary" is returned when adding a new ArcGIS Pro ProWindow item in a sub-folder of an ArcGIS Pro Add-In C# Project in Visual Studio 2019.

Zuletzt veröffentlicht: March 21, 2020 ArcGIS Pro SDK for .NET
Bug-ID-Nummer BUG-000128235
EingereichtJanuary 29, 2020
Zuletzt geändertJuly 20, 2025
Gilt fürArcGIS Pro SDK for .NET
Gefunden in Version2.4.3
BetriebssystemWindows OS
BetriebssystemversionN/A
Behoben in Version2.6
StatusFixed

Workaround

For the workaround, there are two options:

  • Add the ProWindow item directly in the Project main folder, or
  • Use the workflow described in the Steps to Reproduce, ignore the error, then manually add the DAML code associated with the ProWindow item into the config.daml.

 

Adding the ProWindow item directly in the Project folder

 

Create a new C# ArcGIS Pro Add-in project, then add a ProWindow item, for example, right-click ProAddModule7 > Add > New Item > ArcGIS Pro ProWindow.2020-03-04_9-40-49.png

 

This correctly adds the ProWindow Item DAML code and other files (e.g button images) as shown in the figure below.

2020-03-04_9-43-08.png

 

Executing the project produces the correct results as shown in the figure below.

2020-03-04_9-51-19.png

Schritte zur Reproduzierung

Bug-ID: BUG-000128235

Software:

  • ArcGIS Pro SDK for .NET

Benachrichtigung erhalten, wenn sich der Status eines Bugs ändert

Esri Support App herunterladen

Weitere Informationen zu diesem Thema erkunden

Unterstützung durch ArcGIS-Experten anfordern

An den technischen Support wenden

Esri Support App herunterladen

Zu Download-Optionen wechseln