I am making an addin to create subsets and export them to a new workspace. I have stepped through my program and getting error at this particular line while running the addin:
pExportOp.ExportFeatureClass((IDatasetName)pFeatureClassName,
pQueryFilter, pSelSet, pGeometryDef, (IFeatureClassName)pOutDatasetName, 0);
Can someone help that what the error could be.

arcobjectstag when you are using that API? – blah238 Jan 19 at 8:57