When loading ShapeFile data in ArcEngine development, an error is reported: “layer loading failed! Exception from HResult: 0x80040228 “. The problem number belongs to the authorization problem. First, check whether to add a license control. After it has been added, it is found that the error reporting place is when creating the ShapeFile workspace, the following methods are adopted to solve the problem.
Open the program.cs class and add the following code in the corresponding position of the class:
(1)using ESRI.ArcGIS.esriSystem;
(2)
IAoInitialize m_aoinitialize = new AoInitializeClass();
m_aoinitialize.Initialize(esriLicenseProductCode.esriLicenseProductCodeEngine);
As follows:
Read More:
- Exception from HRESULT: 0x80041FE2
- Call Excel to report an error (the exception comes from HResult: 0x80010105 (RPC)_ SERVERFAULT))
- [solved] win10 + office2016 error: library not registered, HResult: 0x8002801d
- Server configuration excel export HResult: 0x800A03EC
- Error 1935. An error occurred during the installation of arcgis10.3 and HResult: 0x80070bc9
- Error in tensorflow loading model valueerror: unknown layer: functional
- Unhandled exception at 0x00000000: 0xc0000005: access violation at position 0x0000000000
- Exception loading sessions from persistent storage
- RuntimeError: Expected hidden[0] size (x, x, x), got(x, x, x)
- [-] handler failed to bind to x.x.x.x: Port troubleshooting
- Unhandled exception: 0xc0000005: access violation while reading location 0x00000000
- [Solved] emulator: glteximage2d: got err pre 🙁 0x502 internal 0x1908 format 0x1908 type 0x1401
- Memory error unhandled exception: 0xc0000005: read location: 0x00000
- CLP: error: getaddrinfo enotfound http://x.x.x.x/
- Three possibilities of “unhandled exception: 0xc0000005: access conflict when reading location 0x00000000”
- svn RA layer request failed unable to connect to a repository
- Apache Groovy——java.lang.NoSuchMethodError: x.x.x: method <init>()V not found
- Window installation of MongoDB exception: connect failed exception
- Solved: elasticsearch error: exception [type = search]_ phase_ execution_ exception, reason=all shards failed]
- module ‘win32com.gen_py.00020813-0000-0000-C000-000000000046x0x1x9‘ has no attribute ‘CLSIDToClassMa