When run the arcgis engine codes in the console application, may come to the exception: HRESULT: 0x80040228.

Then can use these code to enable the lisence:

ESRI.ArcGIS.RuntimeManager.Bind(ESRI.ArcGIS.ProductCode.EngineOrDesktop);
ESRI.ArcGIS.esriSystem.IAoInitialize ao = new ESRI.ArcGIS.esriSystem.AoInitialize();
ao.Initialize(ESRI.ArcGIS.esriSystem.esriLicenseProductCode.esriLicenseProductCodeEngine);

http://forums.arcgis.com/threads/93145-COM-Exception-from-HRESULT-0x80040228

相关文章:

  • 2021-07-03
  • 2021-07-20
  • 2022-01-12
  • 2022-01-31
  • 2021-08-01
  • 2021-09-21
  • 2021-09-27
猜你喜欢
  • 2021-04-18
  • 2021-12-26
  • 2022-12-23
  • 2022-12-23
  • 2021-06-30
  • 2022-12-23
相关资源
相似解决方案