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

[网络转载]

今天将ArcGIS系列的软件从ArcGIS9.3.1升级到ArcGIS10,然后就使用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.Version

完整的参考代码如下所示:

using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;

namespace WindowsFormsApplication1
{
    static class Program
    {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main()
        {
            ESRI.ArcGIS.RuntimeManager.Bind(ESRI.ArcGIS.ProductCode.EngineOrDesktop);
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(new Form1());
        }
    }
}

时间: 2024-08-15 09:43:46

ArcGIS10:ArcGIS version not specified. You must call RuntimeManager.Bind before creating any ArcGIS的相关文章

ArcGIS10+:ArcGIS version not specified. You must call RuntimeManager.Bind before creating any ArcGIS

今天将ArcGIS系列的软件从ArcGIS9.3.1升级到ArcGIS10,然后就使用VS创建一个简单的AE应用程序,然后拖放一个toolbar.LicenseControl以及MapControl控件. 接着编译应用程序,编译成功. 然后单击F5运行程序,这个时候程序报错,出现下面所示的错误: ArcGIS version not specified. You must call RuntimeManager.Bind before creating any ArcGIS components

ArcGIS10以上:ArcGIS version not specified. You must call RuntimeManager.Bind before creating any ArcGIS

今天将ArcGIS系列的软件从ArcGIS9.3.1升级到ArcGIS10.1,然后就使用VS创建一个简单的AE应用程序,然后拖放一个toolbar.LicenseControl以及MapControl控件. 接着编译应用程序,编译成功. 然后单击F5运行程序,这个时候程序报错,出现下面所示的错误: ArcGIS version not specified. You must call RuntimeManager.Bind before creating any ArcGIS componen

VS开发ArcEngine时的一个异常信息——“ArcGIS version not specified. You must call RuntimeManager.Bind before creating any ArcGIS components.”

问题描述:程序报错"ArcGIS version not specified. You must call RuntimeManager.Bind before creating any ArcGIS components." 解决方法:打开program.cs. 把ESRI.ArcGIS.RuntimeManager.Bind(ESRI.ArcGIS.ProductCode.EngineOrDesktop); 放到Application.SetCompatibleTextRender

ArcGIS version not specified. You must call RuntimeManager.Bind before creating any ArcGIS component(VB/C#)

VS2010+ArcGIS/ArcEngine 10.1 .net VB/C# 出现如题问题,解决如下: 加入代码:ESRI.ArcGIS.RuntimeManager.BindLicense(ESRI.ArcGIS.ProductCode.EngineOrDesktop) VB: 在Form1.Designer.vb中: Form1.InitializeComponent()中最前面添加ESRI.ArcGIS.RuntimeManager.BindLicense(ESRI.ArcGIS.Pro

ArcObject开发,“异常在 ESRI.ArcGIS.Version.dll”错误

“System.DllNotFoundException”类型的未经处理的异常在 ESRI.ArcGIS.Version.dll 中发生 其他信息: 无法加载 DLL“ArcGISVersion.dll”: 找不到指定的模块. (异常来自 HRESULT:0x8007007E). 解决方案:你在项目属性-生成-目标平台改为x86就好了. 参考文章 1. 请问:无法加载 DLL“ArcGISVersion.dll”: 找不到指定的模块. (异常来自 HRESULT:0x8007007E)怎么办啊.

【亲测】Python:解决方案:Python Version 2.7 required, which was not found in the registry

好久不更新随笔了,今天因为数据可视化作业,想抓取一些人人网好友关系数据,于是开始尝试python,用到numpy模块,安装的时候提示: 'Python Version 2.7 required, which was not found in the registry' 发现很多人都遇到这个问题,网上说是官方不支持包,然后给了另外的链接让去下非官方版的,结果没找到囧... 于是发现了这个帖子,直接解决了问题,果断贴过来,帮助其他和我一样遭遇的人儿们. 原帖地址:http://www.xue5.co

mysql报错:This version of MySQL doesn&#39;t yet support &#39;LIMIT &amp; IN/ALL/ANY/SOME subquery&#39;

his version of MySQL doesn't yet support 'LIMIT & IN/ALL/ANY/SOME subquery'的意思是,这版本的 MySQL 不支持使用 LIMIT 子句的 IN/ALL/ANY/SOME 子查询,即是支持非 IN/ALL/ANY/SOME 子查询的 LIMIT 子查询. 也就是说,这样的语句是不能正确执行的. select * from table where id in (select id from table limit 10) 但

《ArcGIS Runtime SDK for Android开发笔记》——(10)、ArcGIS Runtime SDK支持的空间数据类型

1.前言 移动端的数据来源非常重要,它决定了移动端功能的实现.早期的ArcGIS Android API中,主要以接入在线的数据源为主,因此主要实现在线的地图浏览.查询和路径分析.地理处理等从操作:在v1.0.1版本中,ArcGIS移动产品第一次可以加载松散型切片,自此逐渐掀开了对本地离线数据源的支持,也因此可以在移动端实现越来越受欢迎的离线功能.现在最新的10.2.7 API离线支持数据主要包括紧凑型切片.tpk切片包..geodatabase..shp文件.地名地址库.网络数据集. 转载请注

ArcGIS for Desktop入门教程_第三章_Desktop软件安装 - ArcGIS知乎-新一代ArcGIS问答社区

原文:ArcGIS for Desktop入门教程_第三章_Desktop软件安装 - ArcGIS知乎-新一代ArcGIS问答社区 1 软件安装 1.1 安装前准备 请确认已经收到来自Esri中国(北京)有限公司发出的软件安装光盘及包含许可授权文件(*.prvs或 *.prvc)的电子邮件. *.prvs是浮动版的许可,*.prvc是单机版的许可.下面以浮动版许可为例,介绍软件的安装. 在安装之前,请先确认待安装软件的系统.硬件及软件环境,是否满足ArcGIS for Desktop 10.4