HighTechTalks DotNet Forums  

Error with VB6 COM Component called from Interop .NET assembly

Dotnet Framework (Interop) microsoft.public.dotnet.framework.interop


Discuss Error with VB6 COM Component called from Interop .NET assembly in the Dotnet Framework (Interop) forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Jen
 
Posts: n/a

Default Error with VB6 COM Component called from Interop .NET assembly - 11-07-2007 , 01:07 PM






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.OpenGraphs2 Class' 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?

Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.