您必须有许可证才能使用此 ActiveX 控件0x80131901

AE或AO开发的程序,必须绑定相应的产品,要么ArcGIS Engine,要么ArcGIS Desktop,且对应的产品有授权。

image

 启动运行时将报错:

System.ComponentModel.LicenseException
HResult=0x80131901
Message=您必须有许可证才能使用此 ActiveX 控件。
Source=System.Windows.Forms
StackTrace:
在 System.Windows.Forms.AxHost.CreateInstance()
在 System.Windows.Forms.AxHost.GetOcxCreate()
在 System.Windows.Forms.AxHost.TransitionUpTo(Int32 state)
在 System.Windows.Forms.AxHost.CreateHandle()
在 System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
在 System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
在 System.Windows.Forms.AxHost.EndInit()

无论是ArcGIS Engine还是ArcGIS Desktop都必须正确授权。

posted @ 2025-12-12 21:48  我也是个傻瓜  阅读(2)  评论(0)    收藏  举报