This application has not been initialized with an ESRI license and will not function correctly 解决办法
来源:互联网 发布:淘宝xbox360手柄一百多 编辑:程序博客网 时间:2024/05/22 02:14
AE开发遇到
This application has not been initialized with an ESRI license and will not function correctly
解决办法分两种情况:
(1) arcgis 服务没有开启,出现这个问题
解决办法,开启arcgis服务;
(2)arcgis服务开启,出现这个问题
办法如下
using ESRI.ArcGIS.esriSystem;
namespace WindowsApplication1
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void Form1_Load(object sender, EventArgs e)
{
IAoInitialize m_aoinitialize = new AoInitializeClass();
m_aoinitialize.Initialize(esriLicenseProductCode.esriLicenseProductCodeArcInfo);
}
}
}
我加上这个后,就没有出现这个“Warning: This application has not been initialized with an ESRI license and will not function correctly. ”提示了。
(原文地址:http://blog.163.com/hulei_accp/blog/static/1068986402010452285539/)
PS:关键是在调用ArcGIS Engine的窗体的From_Load事件中增加红色部分代码,可直接复制粘贴过去。
另,有人说在ArcGIS Engien编程时设置liscence属性时需要选择企业版或者Arcinfo版,虽然是多选,但实际上最好选择一个,否则会按照最低的执行。
使用IAoInitialize接口进行初始化,Initialize方法只能调用一次,多余的调用是不会生效的,道理就像上面LicenseControl勾选了多个许可一样(http://tieba.baidu.com/f?kz=420172163)。
如果用到扩展,请将扩展中的功能打上勾。
- This application has not been initialized with an ESRI license and will not function correctly 解决办法
- Warning:This application has not been initialized with an ESRI license and ...
- The Product License has not been initialized.
- System.Runtime.InteropServices.COMException The Product License has not been initialized. ESRI GeoDatabase
- [VB.NET]Fill:SelectCommand.Connection property has not been initialized
- FreeTextBox has not been correctly installed. To install FreeTextBox either:
- FreeTextBox has not been correctly installed. To install FreeTextBox either:
- WebTools has not been correctly installed as a NT Service.
- Bundle Identifier has not been set up correctly
- this license **** has been cancelled
- INFO: Illegal access: this web application instance has been stopped already. Could not load oracle
- INFO: Illegal access: this web application instance has been stopped already. Could not load
- Illegal access: this web application instance has been stopped already. Could not load
- tomcat异常:Illegal access: this web application instance has been stopped already. Could not load ...
- this web application instance has been stopped already. Could not load net.sf.ehcache.store.compoun
- The local variable date may not have been initialized解决办法
- 解决"Automation License Manager has not been started"
- widnows:The signal HUP is in use by the JVM and will not work correctly on this platform
- TestNG·二 测试组
- TestNG·三 测试方法
- ArcEngine c# 创建shp图层,并将要素写入图层保存
- TestNG·四 测试方法之工厂
- TestNG·五 运行TestNG
- This application has not been initialized with an ESRI license and will not function correctly 解决办法
- Getting Started(v8 hello world)
- TestNG·六 测试结果
- TestNG·七 annotation
- TestNG·八 并发测试
- Google V8编程详解(一)V8的编译安装(Ubuntu)
- Google V8编程详解(二)HelloWorld
- Java读写Excel
- Hibernate复习笔记