I am trying to access an interface within a VB6 COM component through a .NET
interop assembly. I can access this interface when I call it with VBA and
VB.NET but when I try to run my code in an automated situation the error I
receive is:
Exception: Unable to cast COM object of type
'OmegaGroup.Desktop.Interop.OpenGraphs.OpenGraphs2Class' to interface type
'OmegaGroup.Desktop.Interop.OpenGraphs.IOpenGraph2'. This operation failed
because the QueryInterface call on the COM component for the interface with
IID '{917AAEDA-07F1-4BE5-ABBD-A4E35BA5049B}' failed due to the following
error: Element not found. (Exception from HRESULT: 0x8002802B
(TYPE_E_ELEMENTNOTFOUND)).
Can anyone tell me what this error really means, and how I might approach
finding the source of the problem?