I am using ArcObjects 10 and when I select a feature using queryFilter
I get this exception :
An exception of type 'System.Runtime.InteropServices.COMException' occurred in EMS.exe but was not handled in user code
Additional information: Error HRESULT E_FAIL has been returned from a call to a COM component.
This is my code :
featSel = ems.featureLayer as IFeatureSelection;
featSel.Clear();
idList = featSel.SelectionSet.IDs;
featureClass = ems.featureLayer.FeatureClass;
queryFilter = new QueryFilterClass();
queryFilter.WhereClause = "code=1088" ;
selectionSet = featureClass.Select(queryFilter, esriSelectionType.esriSelectionTypeIDSet, esriSelectionOption.esriSelectionOptionNormal, null);
I get the exception on the last line.
I think this is related to the shapefile version as it worked with ArcGIS 10.4.