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?
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?