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

Popular posts from this blog

javascript - Chart.js (Radar Chart) different scaleLineColor for each scaleLine -

apache - Error with PHP mail(): Multiple or malformed newlines found in additional_header -

java - Android – MapFragment overlay button shadow, just like MyLocation button -