ArcEngine报0x80040228的错误

使用Arcengine 9.3开发的程序,发布到安装了Arcengine Runtime的机器上运行出现 0x80040228的错误。
因为Arcengine 9.3的许可的问题,当使用License控件的时候 ,往往会出问题。可以用代码加载许可:
            ESRI.ArcGIS.esriSystem.AoInitialize m = new AoInitializeClass();
            m.Initialize(esriLicenseProductCode.esriLicenseProductCodeArcInfo);

转载自:https://blog.csdn.net/Lordinloft/article/details/19290499

You may also like...