Exception Details: System.InvalidCastException: QueryInterface for interface MyObject._MyCls failed

  • Thread starter Thread starter Tamir Khason
  • Start date Start date
T

Tamir Khason

Remove the inheritence from ServicedComponent (replace with
MarshalByRef or something similar) and you should be able to debug into it
 
I am running a test web site on my own Win2k professional computer. I
have a VB6 COM component (running on COM+) on a seperate application runnint
as "Server".
When running an ASP.NET page calling this component, it works fine, but When
I try and debug the Com+ process using the VB6.0 IDE, I get the following
error:
"Exception Details: System.InvalidCastException: QueryInterface for
interface MyObject._MyCls failed."
When I the same thing on a test app I created using VB.NET, all works fine
and I can debug the VB6.0 component.

Any ideas on where/what to look for?
Thanks ahead

-- Ram
 
Inheritance from ServicedComponent?
My object that sits in the Com+ is the VB6.0 one, not the .NET...
Thanks for the reply

-- Ram
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top