G
Guest
Hi.
I have an ActiveX DLL, developed in Visual Basic 6.0 and I need to use that
DLL inside an ASP.NET application, developed in Visual Basic .Net 2003.
My problem is that in my machine I get the error "QueryInterface for
interface ... failed" when I try to use same method of the ActiveX DLL. I try
the same application in another machine and everything works fine. I found
that if I set the "AspCompat=True" attribute in the page the application
works fine in all machines.
My questions are:
1. Why the same ASP.NET application in my machine doesn’t work without the
"ASPCompat" attribute and works in another machine?
2. There is same way to avoid using the "ASPCompat" attribute and have the
ASP.NET application working in any machine?
3. Can anyone point me an article where Microsoft describes step-by-step how
to use a Visual Basic 6.0 DLL called from an ASP.NET application? I found the
article http://support.microsoft.com/kb/811658/en-us but the focus of this
one is the debug and not the development of the solution.
Thanks in advance,
Sérgio Martins
I have an ActiveX DLL, developed in Visual Basic 6.0 and I need to use that
DLL inside an ASP.NET application, developed in Visual Basic .Net 2003.
My problem is that in my machine I get the error "QueryInterface for
interface ... failed" when I try to use same method of the ActiveX DLL. I try
the same application in another machine and everything works fine. I found
that if I set the "AspCompat=True" attribute in the page the application
works fine in all machines.
My questions are:
1. Why the same ASP.NET application in my machine doesn’t work without the
"ASPCompat" attribute and works in another machine?
2. There is same way to avoid using the "ASPCompat" attribute and have the
ASP.NET application working in any machine?
3. Can anyone point me an article where Microsoft describes step-by-step how
to use a Visual Basic 6.0 DLL called from an ASP.NET application? I found the
article http://support.microsoft.com/kb/811658/en-us but the focus of this
one is the debug and not the development of the solution.
Thanks in advance,
Sérgio Martins