laptop and a wrench

漏洞

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.

上次发布: March 21, 2020 ArcGIS Pro SDK for .NET
漏洞 ID 编号 BUG-000128235
已提交January 29, 2020
上次修改时间July 20, 2025
适用范围ArcGIS Pro SDK for .NET
找到的版本2.4.3
操作系统Windows OS
操作系统版本N/A
修正版本2.6
状态Fixed

解决办法

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

重现步骤

漏洞 ID: BUG-000128235

软件:

  • ArcGIS Pro SDK for .NET

当漏洞状态发生变化时获得通知

下载 Esri 支持应用程序

发现关于本主题的更多内容

获取来自 ArcGIS 专家的帮助

联系技术支持部门

下载 Esri 支持应用程序

转至下载选项