Windows error 0x80040228, -2147220952

Detailed Error Information

IMAPI_E_COMPRESSEDSTASH[1]

Declared inimapierror.h

HRESULT analysis[2]

FlagsSeverityFailure
Reserved (R)false
OriginMicrosoft
NTSTATUSfalse
Reserved (X)false
FacilityCode4 (0x004)
NameFACILITY_ITF[2][3]
DescriptionThe source of the error code is COM/OLE Interface management.[2][3]
Error Code552 (0x0228)

Questions

0votes
0answers

Error loading shapefile in Arcobject c# : Exception from HRESULT: 0x80040228

I want to read a shapefile by Arcobject and C#. I used the ArcGIS Snippet and write follow code: ESRI.ArcGIS.RuntimeManager.Bind(ESRI.ArcGIS.ProductCode.Desktop); IWorkspaceFactory wsf = new ShapefileWorkspaceFactory(); IWorkspace ws = wsf.OpenFromFile(@"E:\Data\shap file iran\IRN_adm\", 0); IFeatureWorkspace fws = ws as IFeatureWorkspace; IFeatureClass fc = fws.OpenFeatureClass("Province.shp"); but in line 3 returned error: > Exception [...] read more
c#
shapefile
arcobjects

Comments

Leave a comment

(plain text only)

Sources

  1. imapierror.h from Windows SDK 10.0.14393.0
  2. https://msdn.microsoft.com/en-us/library/cc231198.aspx
  3. winerror.h from Windows SDK 10.0.14393.0

User contributions licensed under CC BY-SA 3.0