Thanks for your post, we tried to recreate the problem but the problem didn’t show up on our end, following is our test code, would you please check it and tell us what we missed?
ShapeFileFeatureLayer worldLayer = new ShapeFileFeatureLayer(@"…\SampleData\Data\Countries02.shp"); worldLayer.Open(); string sql = “select distinct CNTRY_NAME from Countries02”; worldLayer.QueryTools.ExecuteQuery(sql);
If the problem is still there? if possible, would you please provide us your data for a further test, you could upload it or send it to forumsupport@thinkgeo.com.