ArcGIS version not specified. You must call RuntimeManager.Bind before creating any ArcGIS component

时间:2024-05-23 12:03:42

ArcGIS version not specified. You must call RuntimeManager.Bind before creating any ArcGIS components.

在程序入口处添加绑定:

ESRI.ArcGIS.RuntimeManager.Bind(ESRI.ArcGIS.ProductCode.EngineOrDesktop);

可以在主函数中InitializeComponent();上一行添加。
如下图:ArcGIS version not specified. You must call RuntimeManager.Bind before creating any ArcGIS component