Hi folks;
I'm working on an ASP.NET 1.1 app, and one of my classes is a managed
class that has a private member typed through COM Interop. During the
initial page load Interop appears to be functioning correctly, however
for various reasons I need to stuff the object into Session and then
deal with it on postback. After a postback, the private (Interop'd)
member appears to lose it's type information -- ? object.field yields
System.__COMObject instead of the Interop type and any attempt to work
with the private member results in a QueryInterface error and an
Invalid Cast exception.
Can anybody shed any light or offer any suggestions?
Regards,
Jason
Robert Jordan - 24 Jun 2004 21:56 GMT
> I'm working on an ASP.NET 1.1 app, and one of my classes is a managed
> class that has a private member typed through COM Interop. During the
[quoted text clipped - 5 lines]
> with the private member results in a QueryInterface error and an
> Invalid Cast exception.
you must use <%@Page aspcompat="true" %>
rob