ArcGIS Engine 10报错:ArcGIS version not specified...
2012-09-29 11:03
344 查看
ArcGIS Engine 10桌面应用程序第一次开发,于是使用VS创建一个简单的AE应用程序,然后拖放一个toolbar、LicenseControl以及MapControl控件。接着编译应用程序,编译成功。然后单击F5运行程序,这个时候程序报错,出现下面所示的错误: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.Versionusing System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;
namespace SyitAE
{
static class Program
{
/// <summary>
/// 应用程序的主入口点。
/// </summary>
[STAThread]
static void Main()
{
ESRI.ArcGIS.RuntimeManager.Bind(ESRI.ArcGIS.ProductCode.EngineOrDesktop); //加上这句就不会再报这样的错误了
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new Form1());
}
}
}
问题解决方案:
在系统的入口添加下面的一行代码:
ESRI.ArcGIS.RuntimeManager.Bind(ESRI.ArcGIS.ProductCode.EngineOrDesktop);
当然上面这样代码也可以添加到其他的适合的位置,本人感觉放到程序的入口最合适
这里还需要添加一个Reference:ESRI.ArcGIS.Versionusing System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;
namespace SyitAE
{
static class Program
{
/// <summary>
/// 应用程序的主入口点。
/// </summary>
[STAThread]
static void Main()
{
ESRI.ArcGIS.RuntimeManager.Bind(ESRI.ArcGIS.ProductCode.EngineOrDesktop); //加上这句就不会再报这样的错误了
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new Form1());
}
}
}
相关文章推荐
- ArcGIS engine 运行报错: ArcGIS version not specified.解决办法
- ArcGIS10开发:ArcGIS version not specified. You must call Runti...
- Arcgis 10问题:Incorrect product version number in the quthorizatio file.
- ArcGIS version not specified.
- ArcGIS engine C#开发出现未能加载程序集“ESRI.ArcGIS.Controls, Version=10.0.0.0, Culture=neutral, PublicKeyToken=
- Arcgis desktop 10及Arcgis Engine 10破解
- ArcGIS 10 Engine DevelopKit 之安装与帮助;VBA,跨平台CPP,JAVA,ArcGIS Engine DevelopKit 10 的帮助如何打开
- ArcGIS 10 影像分析工具及ArcGIS Engine的实现
- ArcGIS 10 Engine DevelopKit 之安装与帮助;VBA,跨平台CPP,JAVA,ArcGIS Engine DevelopKit 10 的帮助如何打开
- Arcgis 10与Arcgis Engine10安装破解
- ArcGIS 10 影像分析工具及ArcGIS Engine的实现
- ArcGIS Engine Runtime 10 中文补丁 可用于官方 ArcGIS Engine SP中文补丁的升级
- vs2012 arcgis engine 10 丢失arcgis模板
- ArcEngine C++开发中的ArcGIS version not specified问题
- ArcGIS10:ArcGIS version not specified. (转载)
- ArcGIS10以上:ArcGIS version not specified. You must call RuntimeManager.Bind before creating any ArcGIS
- ArcGIS 10 Engine DevelopKit 之安装与帮助;VBA,跨平台CPP,JAVA,ArcGIS Engine DevelopKit 10 的帮助如何打开
- ArcGIS10:ArcGIS version not specified. (转载)
- 安卓智能地图开发与实施五:在线基础底图 - ArcGIS Runtime SDK for Android(Version 100.0.0)
- ArcGIS Engine 10 系统要求