Storing COM objects in a session variable

S

Sandra

I am using a VB6 COM object with an asp.net project. I am storing the
COM object in a session variable but am having a problem accessing the
COM object from the session variable.

I am getting the error:
QueryInterface for interface object.class failed

I am able to create new instances of the object with no problems but
as soon as I cast the session variable to the object like so:
CType(Session("object"),object.class)
I get the error.

The site is working fine on our own servers with no errors but is
happening on the client's server so it seems to be some kind of
configuration setting.

I have set <identity impersonate="true"> in my web.config file and
ASPCompat=true in the page directive for each aspx page and the COM
objects are working fine until I cast the object from the session
variable.

Does anyone know why the problem would be occurring?
 

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

Members online

Forum statistics

Threads
473,982
Messages
2,570,186
Members
46,739
Latest member
Clint8040

Latest Threads

Top