Queryinterface Error

M

Malcolm Klotz

Hi,

I am developing an ASP.Net application that uses a VB6.0 COM+ dll. When I
try to debug the VS.NET application with VB6.0 running (and registered in
COM+) I am receiving a QueryInterface Error when the application attempts to
instantiate any of the classes in the COM+ dll. If I remove the application
from COM+ and attempt to do the same thing, I get a permission denied.

I have windows authentication set to None, and impersonate set to True, so I
am connecting with the anonymous user I have set for the IIS application.

Basically, am I able to trap the calls inside the VB6.0 ide or is this not
possible with .NET and VB 6.0

Appreciate any help you can offer.
 
S

Steven Cheng[MSFT]

Hi Malcolm,

AS for the problem you described, it is likely due to security issue. Since
you mentioned that you can call the component from VB6 app correctly ,yes?
Have you tried create a simple winform .net application to call that
component to see whether it works? The winform application is runner udner
the current logon user account.
Also, what's your asp.net 's security setting in IIS and web.config?
IIS: Integrited windows ? Allow anonymous?

ASP.NET CONFIG: Windows authentication? impersonate= false?

By default , if we didn't use impersonate, asp.net will run under the
default process account( machine\aspnet on 2k or xp , networkservice on 2k3
IIS6). If using impersonate, it use the account passed from the IIS. So we
need to make sure those account has the sufficient permissions.

Thanks.

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
 
M

Malcolm Klotz

Hi Steven,

I have configured the IIS application to run as anonymous, but I have
configured the anonymous user to be a user that is in the local
adiministrators group for the machine.
In the ASP.Net config file, I have:
Windows Authentication = "None",
Impersonate = "True"
This should remove ASPNET user out of the equation, and should connect to
the COM+ application as the user configured in the IIS application.

I have tried all the other suggestions, and I can debug the application from
a VB.NET application, but when I try in ASP.NET, with the config above, with
the component in COM+ and the IDE running, I get the queryinterface error.

I would agree that it sounds like permissions, but if this user is under the
local administrators group, what more permissions could that user require?
Moroever, is there a debugger process that I have to assign specific
permissions to allow this user to attach to the ide?

Thanks.
 
P

Peter Huang

Hi Malcolm,

Do you mean you wants to debug the VB6 code with ASP.NET?
I think you may try to take a look at the link below.
How To Use the Microsoft Visual Studio .NET Native Debugger to Debug a
Microsoft Visual Basic 6.0 DLL When It Is Called from an ASP.NET Application
http://support.microsoft.com/?id=811658

If I has any misunderstanding, or you have any concern on this issue please
feel free to post here.

Best regards,

Peter Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
 
M

Malcolm Klotz

Hi Peter,

You understand the problem 100%, however the problem is that the VB6 dll
utilizes COM+, and, the COM+ hooks are not initialized using the debug
method outline in this article.
So, true, I am trying to debug the VB6 dll, but one extra piece, the dll is
a COM+ dll.

I have a feeling that this might not be possible, but let me know anyways.

Much appreciated.
 
P

Peter Huang

Hi Malcolm,

I will involve related support teaming on it to see if there is any
information about this issue.
Cheers.

Best regards,

Peter Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
 
P

Peter Huang

Hi,

If you have any more concerns on it, please feel free to post here.

Thanks for your understanding!

Best regards,

Peter Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
 

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

No members online now.

Forum statistics

Threads
473,770
Messages
2,569,584
Members
45,075
Latest member
MakersCBDBloodSupport

Latest Threads

Top