ERROR 010096: There is no Spatial Analyst license currently available or enabled.
来源:互联网 发布:return of the mac 编辑:程序博客网 时间:2024/05/19 18:17
http://hi.baidu.com/biongiser/item/c32e6a175927560f8ebde425
环境:VS2010,Arcgis 10 SDK
在本机arcmap上可以进行栅格图层的差值运算,但是在ae程序中却报错:ERROR 010096: There is no Spatial Analyst license currently available or enabled.
新建工程的时候选择的是arcview,并且也添加了Spatial Analyst 功能了(如下代码,Program.cs文件)。且添加了ESRI.ArcGIS.Spatial Analyst的引用。
static void Main()
{
//ESRI License Initializer generated code.
m_AOLicenseInitializer.InitializeApplication(new esriLicenseProductCode[] { esriLicenseProductCode.esriLicenseProductCodeArcView },
new esriLicenseExtensionCode[] {
esriLicenseExtensionCode.esriLicenseExtensionCode3DAnalyst,
esriLicenseExtensionCode.esriLicenseExtensionCodeSchematics,
esriLicenseExtensionCode.esriLicenseExtensionCodeArcScan,
esriLicenseExtensionCode.esriLicenseExtensionCodeSpatialAnalyst,
esriLicenseExtensionCode.esriLicenseExtensionCodeGeoStats,
esriLicenseExtensionCode.esriLicenseExtensionCodePublisher,
esriLicenseExtensionCode.esriLicenseExtensionCodeDataInteroperability
});
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new CYFX());
//ESRI License Initializer generated code.
//Do not make any call to ArcObjects after ShutDownApplication()
m_AOLicenseInitializer.ShutdownApplication();
}
}
经过N小时奋战终于找到原因:虽然新建工程的时候选择了一些分析的功能,但添加licenceControl控件的时候默认情况下并没有选择所有的分析功能,需要手动勾选,如下:
- ERROR 010096: There is no Spatial Analyst license currently available or enabled.
- Error 010096:there is no spatial analyst license currently available or enabled
- error:There is no SDK with the name or...
- IOS error "There is no SDK with the or path...."
- There is no report design object available.
- there is no default constructor available in ...
- There is an error while getting planid. No Free partitions available
- The Managed Metadata Service or Connection is currently not available
- if there is a error "SSSE3 instruction set not enabled"
- error C2679: binary ',class std::allocator >' (or there is no accept
- error C2677: binary '-' : no global operator defined which takes type 'class CString' (or there is n
- error C2558:no copy constructor available or copy constructor is declared 'explicit'
- error C2558: class 'Driver' : no copy constructor available or copy constructor is declared 'explici
- Birt There is no report design object available
- there is no source code available for the current location
- There is No Source Code Available for the Current Location
- There is no source code available for current location
- birt 关于 There is no report design object available
- 如何把double类型四舍五入到小数后两位
- 电视信号中的一些基本概念 (转自驱动之家)
- BasicDataSource
- C++ primer plus 第5章 循环和关系表达式
- android应用安全——(数据抓包)跟踪监控android数据包
- ERROR 010096: There is no Spatial Analyst license currently available or enabled.
- js的数组操作 splice
- C++ primer plus 第7章 函数——C++的编程模块
- Jacobi迭代和Gauss迭代 c语言实现
- C++ primer plus 第8章 函数探幽
- 多数据源切换
- HTML页面跳转方法及代码
- php环境搭建
- C语言在嵌入式系统的不足