Hi,
I havent encounted the same error but it might be due to the availability of the Assemblies to the developer.
If you are using VBA in ArcMap (Via Tools-->Macros-->Visual Basic Editor), the following code works for me.
Dim pMxDoc As IMxDocument
Dim pMap As IMap
Dim pFeatSel As IFeatureSelection
Dim pqf As IQueryFilter
Set pMxDoc = Application.Document
Set pMap = pMxDoc.FocusMap
Set pFeatSel = pMap.Layer(0)
' set up query filter with where clause
Set pqf = New QueryFilter
pqf.WhereClause = "shape_length > 200000"
' perform selection
pFeatSel.SelectFeatures pqf, esriSelectionResultNew, False
pFeatSel.SelectionChanged
pMxDoc.ActiveView.PartialRefresh esriViewGeography, Nothing, Nothing
If the above code still throws same error, try replacing the statements as shown below.
Application.Document - esriArcMap.Application.Document
esriSelectionResultNew - esriCarto.esriSelectionResultEnum.esriSelectionResultNew
esriViewGeography - esricarto.esriViewDrawPhase.esriViewGeography ( use esriViewGeoSelection instead of esriViewGeography or use both together)
Cheers
Thaviti