• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1999
  • Last Modified:

System.InvalidCastException: QueryInterface for interface

HI
I have a managed code that is calling unmanaged Com+ vb6 code , I always get this error for 1 component , other are working ok:
This component used to work ok..
One fact is that this is a webfarm cluster on several machines we are having the same problem
I traced the error on the web and it says (the closest) that this error might be due to threading conflicts (the unmanaged component is running in single app mode) but I repeat this used to work!

any clues?
0
Michel Sakr
Asked:
Michel Sakr
  • 2
1 Solution
 
naveenkohliCommented:
I am assuming that you ae invoking your invoking unmanaged serviced  componenet from web form...
I Am asure you must have tried this.. but let me ask. Did you try setting aspCompat attribute to put ASP.Net thread as STA because all VB6 components are STAs.
0
 
Michel SakrAuthor Commented:
yes it is set in the directive to true
0
 
Michel SakrAuthor Commented:
Hi.. the thing is that i upgrade to Application center 2k sp2 and it worked.. it seems Application center sp1 never replicated the gac..
0

Featured Post

Become an Android App Developer

Ready to kick start your career in 2018? Learn how to build an Android app in January’s Course of the Month and open the door to new opportunities.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now