Theapplicationisnotlicensedtomodifyorcreateschema
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
Theapplicationisnotlicensedtomodifyorcreateschema
问题描述:
使用ArcCatalog从SDE中复制FeatureClass到个人空间数据库,出现错误,提示“The application is not licensed to modify or create schema for this type of data”。
今天使用IFeatureWorkSpace的CreateFeatureClass方法创建要素类时,
报错“应用程序未获得创建或修改此类型数据的方案的许可”(中文版)
原因:
ArcGIS Desktop的软件许可类型选择错误。
解决方法:
1、授权文件需要支持ArcGIS Engine Enterprise GeoDatabase
若发现是arcgis engine的许可不全对licence control 勾选第二个ArcGIS Engine Enterprise GeoDatabase 发现没有许可重新下了个完全授权文件就解决了。
2、License管理,需要ArcInfo(Floating)。
ArcGIS DeskTop Administrator中SoftWare Producte选择“ArcInfo(Floating)”
生成一下lic文件,然后配置一下License Management 就可以
Error Message
This error occurs 发生原因while using ArcView ArcCatalog to export data to an ArcSDE geodatabase:
"The application is not licensed to modify or create schema for this type of data."
Cause
ArcGIS Desktop full read-write and transactional access to a geodatabase is not available in the ArcView environment.
Solution or Workaround
Use ArcInfo or ArcEditor to export the data to an ArcSDE geodatabase.
For detailed information regarding the functionality and limitations of ArcGIS platforms,
3、License控件或组件进行注册。
今天使用IFeatureWorkSpace的CreateFeatureClass方法创建要素类时,报错“应用程序未获得创建或修改此类型数据的方案的许可”(中文版)“The a pplication is not licensed to
create or modify schema for this type of data”(英文版),错误原因是因为窗口上的License控件的属性中Products所选的是"ArcGIS Engine“,但是在SDE中创建要素类是,License控件的Products必须也只能选择“ArcGIS Engine EnterPrise Geo...”。
修改License控件的Products 选项后,问题解决方法
(1)、用license控件,点击属性,如果之前的许可产品为arcengine,则将许可产品设为第二个即geodatabase,并选中相应的扩展,关闭工程,重新打开;
用第一种搞好了。
(2)、删掉license控件,用iaoinitialize在窗体加时初始化geodatabase及扩展
重点补充说明的是方法2
AoLiceseInitialize aoLiceseInitialize = new AoLiceseInitialize();
aoLinceseInitailize.Initialize (esriLicenseProductCode.esriLicenseProductCodeEngineGeoDB );//解决问题
//aoLinceseInitailize.Initialize (esriLicenseProductCode.esriLicenseProductCodeEngine);//会报错
private void Form1_Load(object sender, EventArgs e)
{
IAoInitialize pao = new AoInitializeClass();
pao.Initialize(esriLicenseProductCode.esriLicenseProductCo deEngineGeoDB);
esriLicenseStatus status = pao.IsProductCodeAvailable(esriLicenseProductCode.esriLicense ProductCodeEngineGeoDB);
MessageBox.Show(status.ToString());
}
但输出not licenced
Failed to initialize an ArcGIS product license.
This application requires a product license of ArcGIS Engine Enterprise GeoDatabase.
最后发现是arcgis engine的许可不全对licence control 勾选第二个ArcGIS Engine Enterprise GeoDatabase 发现没有许可重新下了个完全授权文件就解决了。
--------------。