I'm using ArcObjects with .NET, and have ArcGIS Desktop 10 SP 4 installed. In my code I have the following line:
p.s. I also tried "new FeatureClassNameClass()", instead of casting it, but got the same results.
Thanks,
Ruth
IFeatureClassName outFeatureClassName = (IFeatureClassName)new FeatureClassName();
When I look at the outFeatureClassName object in debugging, the following exceptions have been thrown by objects in the class:CanEditMetadata.Metadata InteropServices.COMException
CanEditMetadata.ModelName InteropServices.COMException
NativeType InteropServices.COMException
ObjectClassID InteropServices.COMException
SQLPrivileges InvalidCastException
A little more info on the SQLPrivileges error...CanEditMetadata.ModelName InteropServices.COMException
NativeType InteropServices.COMException
ObjectClassID InteropServices.COMException
SQLPrivileges InvalidCastException
Unable to cast COM object of type 'ESRI.ArcGIS.Geodatabase.FeatureClassNameClass' to interface type 'ESRI.ArcGIS.Geodatabase.ISQLPrivilege'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{A867A185-C5CB-11D2-AAE2-00C04FA37849}' failed due to the following error: No such interface supported (Exception from HRESULT: 0x80004002 (E_NOINTERFACE)).
Is there a known issue with this class? Is there a way I can get around this issue?p.s. I also tried "new FeatureClassNameClass()", instead of casting it, but got the same results.
Thanks,
Ruth