473,388 Members | 1,309 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,388 software developers and data experts.

Queryinterface Error

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.
Nov 18 '05 #1
6 1187
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.)
Nov 18 '05 #2
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.

"Steven Cheng[MSFT]" <v-******@online.microsoft.com> wrote in message
news:y3*************@cpmsftngxa10.phx.gbl...
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.)

Nov 18 '05 #3
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.

Nov 18 '05 #4
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.

""Peter Huang"" <v-******@online.microsoft.com> wrote in message
news:hi****************@cpmsftngxa10.phx.gbl...
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.

Nov 18 '05 #5
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.

Nov 18 '05 #6
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.

Nov 18 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Peter Sparago | last post by:
I am working with the MSHTML editor control. I used win32com.client.gencache.EnsureModule on the MSHTML type library to generate the necessary IDispatch support for all the various interfaces used...
0
by: Jason | last post by:
I'm writing a small console app in .NET that needs to reference a 3rd party dll. I wrote the app by adding a reference to the 3rd party dll in my project and my code builds and executes...
0
by: adam | last post by:
I am getting an error when trying to use an ADODB.Recordset that was passed from a VB6 application to a VB.Net class library using COM Interop. I am running this on WinXP SP2 using the .Net...
0
by: Jason | last post by:
I'm writing a small console app in .NET that needs to reference a 3rd party dll. I wrote the app by adding a reference to the 3rd party dll in my project and my code builds and executes...
2
by: Stan | last post by:
Hello All: Don;t know if this is the correct group to post this in but here goes. Getting this error when trying to create excel object using Outlook Web Components on our web server. Any help...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.