rleblanc@terragotech.com

FeatureClassName error

Discussion created by rleblanc@terragotech.com on Dec 6, 2012
Latest reply on Dec 6, 2012 by rleblanc@terragotech.com
I'm using ArcObjects with .NET, and have ArcGIS Desktop 10 SP 4 installed.  In my code I have the following line:
[INDENT]IFeatureClassName outFeatureClassName = (IFeatureClassName)new FeatureClassName();[/INDENT]

When I look at the outFeatureClassName object in debugging, the following exceptions have been thrown by objects in the class:
[INDENT]CanEditMetadata.Metadata     InteropServices.COMException
CanEditMetadata.ModelName     InteropServices.COMException
NativeType           InteropServices.COMException
ObjectClassID           InteropServices.COMException
SQLPrivileges           InvalidCastException[/INDENT]

A little more info on the SQLPrivileges error...
[INDENT]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)).[/INDENT]

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

Outcomes