Error loading shapefile in Arcobject c# : Exception from HRESULT: 0x80040228 -
i want read shapefile arcobject , c#. used arcgis snippet , 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 ifeatureworkspace; ifeatureclass fc = fws.openfeatureclass("province.shp");
but in line 3 returned error:
exception hresult: 0x80040228
whats matter?
Comments
Post a Comment