当前位置: 代码迷 >> 综合 >> ArcGIS version not specified. You must call RuntimeManager.Bind before creating any ArcGIS component
  详细解决方案

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

热度:44   发布时间:2024-01-16 01:23:25.0

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


在程序入口处添加绑定:

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

可以在主函数中InitializeComponent();上一行添加。

RuntimeManager和ProductCode会报错,提示找不到相应dll,需添加ESRI.ArcGIS.Version.dll引用,添加时若找不到该dll,可浏览定位到下面位置:

C:\Program Files (x86)\Common Files\ArcGIS\bin



都是些最基础的问题,记录下来权当笔记。

新添加的axMapControl在加载mxd地图文件后,控件不显示数据,有一种原因是窗体没添加AxLicenseControl控件。

  相关解决方案