您的位置:首页 > 其它

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

2016-05-08 10:13 393 查看
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控件。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: