ArcGIS version not specified. Yo…
2016-01-25 15:28
183 查看
ArcGIS version not
specified. You must call RuntimeManager.Bind before creating any ArcGIS
components.
问题解决方案:
在系统的入口添加下面的一行代码:
ESRI.ArcGIS.RuntimeManager.Bind(ESRI.ArcGIS.ProductCode.EngineOrDesktop);
当然上面这样代码也可以添加到其他的适合的位置,本人感觉放到程序的入口最合适
这里还需要添加一个Reference:ESRI.ArcGIS.Version
如下所示:
namespace WindowsFormsApplication1
{
static class
Program
{
///
/// The main entry point for the application.
///
[STAThread]
static void Main()
{
ESRI.ArcGIS.RuntimeManager.Bind(ESRI.ArcGIS.ProductCode.EngineOrDesktop);
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new Form1());
}
}
}
specified. You must call RuntimeManager.Bind before creating any ArcGIS
components.
问题解决方案:
在系统的入口添加下面的一行代码:
ESRI.ArcGIS.RuntimeManager.Bind(ESRI.ArcGIS.ProductCode.EngineOrDesktop);
当然上面这样代码也可以添加到其他的适合的位置,本人感觉放到程序的入口最合适
这里还需要添加一个Reference:ESRI.ArcGIS.Version
如下所示:
namespace WindowsFormsApplication1
{
static class
Program
{
///
/// The main entry point for the application.
///
[STAThread]
static void Main()
{
ESRI.ArcGIS.RuntimeManager.Bind(ESRI.ArcGIS.ProductCode.EngineOrDesktop);
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new Form1());
}
}
}
相关文章推荐
- ArcGIS Add-in插件开发问题—VS中“…
- 给我的新研究生的一封信
- 将博客搬至CSDN
- 数据结构之Shapefile
- 不规则三角网的算法设计与实…
- C#中Dictionary的用法
- ArcGIS环境32位和64位引发问题的解…
- AE直接调用GeoProcessing 工具
- 在ArcEngine中使用Geoproces…
- ArcGIS Server 10.1发布…
- 抽稀-Douglas-Peucker算法
- 数据结构之队列
- 数据结构之栈
- Delaunay三角剖分(Delaunay T…
- Shapefile数据结构
- 基于Web的图像处理
- Landsat8的不同波段组合说明
- egamIetatoR.48
- chrome浏览器防止打开慢
- 如何设置CentOS为中文显示