WPF开发ArcGis系统时的异常信息: ArcGIS product not specified. You must first bind to an ArcGIS version prior to using any ArcGIS components.

时间:2023-03-08 15:25:11
WPF开发ArcGis系统时的异常信息: ArcGIS product not specified.  You must first bind to an ArcGIS version prior to using any ArcGIS components.

  “System.Runtime.InteropServices.COMException”类型的未经处理的异常在 Arcgis_Test.exe 中发生

  其他信息: ArcGIS product not specified. You must first bind to an ArcGIS version prior to using any ArcGIS components.

WPF开发ArcGis系统时的异常信息: ArcGIS product not specified.  You must first bind to an ArcGIS version prior to using any ArcGIS components.
解决办法:
添加 ESRI.ArcGIS.RuntimeManager.Bind(ESRI.ArcGIS.ProductCode.EngineOrDesktop);
需添加引用:ESRI.ArcGIS.Version

WPF开发ArcGis系统时的异常信息: ArcGIS product not specified.  You must first bind to an ArcGIS version prior to using any ArcGIS components.