In stead of using IRouteEventSource, I used co-class: RouteEventSource and the compile error was gone. public string GetRouteMeasureClass(IWorkspace ws, string fName) { IFeatureWorkspace fWs = (IFeatureWorkspace)ws; IFeatureClass fClass = fWs.OpenFeatureClass(fName); ESRI.ArcGIS.Location.RouteEventSource rteEventSource; rteEventSource = (ESRI.ArcGIS.Location.RouteEventSource)fClass; ... }But another problem occurs. In VS 2010 Object Browser: RouteEventSource is shown as an interface, which contains IDataset only. Whilst in ESRI literature, it is a co-class. There is something incorrect. I have reported it another thread (http://forums.arcgis.com/threads/93431-Subclass-RouteEventSource). I will close this one.