Ask a Question related to ASP.NET Security, Design and Development.
-
Hidden Desi #1
Access denied while calling COM+ component from web wervice
Hello,
I am trying to provide a web service layer on top of
legacy VB 6.0 COM+ component. I will be calling my web
service from ASP.NET pages (which are hosted on another
web server) and web service will in turn invoke the COM+
component.
The problem is that I am receiving "Access Denied" error
while calling COM+ component from web service. COM+
component is a simple VB 6.0 component that runs under the
identity of a domain account.
This is what I did:
(1) Installed VB 6.0 COM component in COM+ server
application and set the Identity of the application (On
Identity tab in COM+) to the domain account.
(2) Created a RCW for the VB 6.0 component using tlbimp.exe
(3) Created a web services project and added a reference
to the previously created RCW
(4) Called a method on web service that creates above
mentioned RCW object and calls a method on it; as soon as
the object creation call is run in web service method,
System.UnauthorizedAccessException is raised.
Important exception details are as follows:
COMPlusExceptionCode ==>> 0xe0434f4d
HResult ==>> 0x80070005
Message ==>> "Access is denied."
I have following software:
* .NET Framework 1.1
* Windows 2003 Enterprise Server (In production,
application will run on Windows 2000 and .NET framework
1.1)
* IIS 6.0
* COM+ 1.5
I have following security settings:
* IIS authentication is set to Annonymous
* <authentication> mode is set to "None" in web service
config file
* Apart from that <authentication> element, web.config and
machine.config files have all default settings; that means
no impersonation, and request is run under default ASPNET
account.
What am I doing wrong here? Currently all component are on
the same machine! Please help me out here; It is very
urgent and I would really greatly appreciate any help in
this regard.
Thanks,
Hidden Desi
By the way, I have already gone through the following
article (Knowledge Base Q325791)
PRB: "Access Denied" Error Message Occurs When You
Impersonate an Account in ASP.NET and Then Call STA COM
Components
According to this article:
AspCompat is not available for Web Services (.asmx) so you
must take a different approach. If the impersonated
account is static, which means that you specify a userName
and a password in the <identity> tag of Web.config or
Machine.config, or if you always programmatically
impersonate the same account, you can put the STA
component in a COM+ Server Application and then set the
identity of the application to the impersonated user.
I also tried hard coding a domain user name and password
in <identity> element in my web.config file but still the
same error !!!
Hidden Desi Guest
-
Web Service + Anon Access, but getting 401 Access Denied Error
I have a simple webservice that just returns a string. The security for this is set to windows authentication in IIS (XP Professional) and anonymous... -
Access denied when calling COM component.
Hello, I try to convert a VB6 application to an ASP Web application. This application uses a COM component to access data on a remote server. ... -
"Access is Denied" error when calling wshShell from ASP
I've got a script in an ASP page that is supposed to extract certain files from a zip file, move them, create a new zip with the moved files and... -
Access denied when creating Access application object
In an ASP file I am running the following in VBScript in order to extract data from an Access 2002 MDB file which is physically located in the... -
access denied on data access pages
I have created data access pages that worked well when I tried them on two separate computer simutaneously, but when we went into production we got... -
trukof #2
Re: Access denied while calling COM+ component from web wervice
“la solución más sencilla en ocasiones es la correcta”
trukof Guest



Reply With Quote

