473,406 Members | 2,345 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,406 software developers and data experts.

'access denied' calling remote DCOM NT service from ASP

Having following problem

1. Client: ASP application with anonymous access to be running as
DOMAIN\my_user on WinXP
2. Server: DCOM NT Service runs on remote host (W2K Server) under the same
account DOMAIN\my_user
security within server is initialized using
hr = CoInitializeSecurity(&appid, -1, NULL, NULL, 0, 0, 0, EOAC_APPID,
NULL);

when trying to access the application from ASP - gettting
DCOM got error "General access denied error " from the computer MY_SERVER
when attempting to activate the server:
in System event log. Granting "everyone" on target system resolves the
problem, but I would like to have limited user access.

When running the same client scenario from test C++ application running
under DOMAIN\my_user interactive account - everything works with no problem.

The question is what could be wrong with configuration of security under
IIS?

Thanks in advance.

Jul 22 '05 #1
5 6355

"Sergey V" <se******@mail.ru> wrote in message
news:eF**************@TK2MSFTNGP12.phx.gbl...
when trying to access the application from ASP - gettting
DCOM got error "General access denied error " from the computer MY_SERVER
when attempting to activate the server:
in System event log. Granting "everyone" on target system resolves the
problem, but I would like to have limited user access.

When running the same client scenario from test C++ application running
under DOMAIN\my_user interactive account - everything works with no problem.
The question is what could be wrong with configuration of security under
IIS?


Are you logging on via the web page or running anonymous? Does the
anonymous user have access via DCOM?
Jul 22 '05 #2

"Jeff Fink" <jf********@yahoo.com> wrote in message
news:%2****************@TK2MSFTNGP14.phx.gbl...

"Sergey V" <se******@mail.ru> wrote in message
news:eF**************@TK2MSFTNGP12.phx.gbl...
when trying to access the application from ASP - gettting
DCOM got error "General access denied error " from the computer MY_SERVER
when attempting to activate the server:
in System event log. Granting "everyone" on target system resolves the
problem, but I would like to have limited user access.

When running the same client scenario from test C++ application running
under DOMAIN\my_user interactive account - everything works with no

problem.

The question is what could be wrong with configuration of security under
IIS?


Are you logging on via the web page or running anonymous? Does the
anonymous user have access via DCOM?


IIS Virtual Directory security is set to anonymous, but "Account used for
anonymous access" is DOMAIN\my_user. And I suppose it should be used to both
access file system and make RPC calls. Isn't it? Did not found references on
that topic in documentation.
Jul 22 '05 #3
Just found the solution, the trick is to :

1.. Set IIS Virtual Dir "Application Protection" to High (Isloated), now
we'll get COM+ application registered
2.. Go to Control Panel -> Administrative Tools -> Component service

and find the application under Component Services -> My Computer -> COM+
Applications :

and specify the user on Identity tab
"Sergey V" <se******@mail.ru> wrote in message
news:eF**************@TK2MSFTNGP12.phx.gbl...
Having following problem

1. Client: ASP application with anonymous access to be running as
DOMAIN\my_user on WinXP
2. Server: DCOM NT Service runs on remote host (W2K Server) under the same
account DOMAIN\my_user
security within server is initialized using
hr = CoInitializeSecurity(&appid, -1, NULL, NULL, 0, 0, 0, EOAC_APPID,
NULL);

when trying to access the application from ASP - gettting
DCOM got error "General access denied error " from the computer MY_SERVER
when attempting to activate the server:
in System event log. Granting "everyone" on target system resolves the
problem, but I would like to have limited user access.

When running the same client scenario from test C++ application running
under DOMAIN\my_user interactive account - everything works with no
problem.

The question is what could be wrong with configuration of security under
IIS?

Thanks in advance.

Jul 22 '05 #4

"Sergey V" <se******@mail.ru> wrote in message
news:uR**************@TK2MSFTNGP15.phx.gbl...

IIS Virtual Directory security is set to anonymous, but "Account used for
anonymous access" is DOMAIN\my_user. And I suppose it should be used to both access file system and make RPC calls. Isn't it? Did not found references on that topic in documentation.


Saw that you found your solution, but I thought I would comment on your
question. Several years ago, I worked at MS in Redmond and was given the
task of setting up a prototype web personalization system using existing MS
products so we could do performance measurements of the different
components. The idea being that we would use the best parts and build
better ones for the places where performance was a problem.

So I put the system together and used an early ADSI build to query a DS from
an ASP web page (IIS 4). I found dramatically different results when
querying via ASP versus an identical VBS script run from the command line.
So different in fact, that you could only query ADSI 64 times via ASP
(didn't matter if it was 64 times on one page or 64 pages with 1 query)
before the Windows LDAP client would lock up and stop issuing queries. The
VBS script had no such limitations.

They got me a fix, but I never really understood what the problem was. The
only difference between my ASP and VBS code was the function I called to
output the results. So there was something in IIS that greatly affected the
way the objects were called and run. I would suspect that in some ways
there still is.

-Jeff


Jul 22 '05 #5
This really has nothing to do with the OP's problem.

The reason Sergey hit an access denied, is that by default, an ASP
application runs as IWAN_<computer>.

Brian
Jul 22 '05 #6

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

Similar topics

9
by: | last post by:
Hi All, I have allready tried to ask a similar question , but got no answer until now. In the meantime, I found, that I cannot understand some thread-settings for the Main() function . If I use...
3
by: Roy Osherove | last post by:
Hi folks. I have an ASP.Net application that runs a .Net dll that uses WMI and ADSI(both managed) to connect to a given IIS root and search through it. When not using the ASP.Net client, but...
1
by: DotNetJunkies User | last post by:
Hi, I have a web application that accesses a DCOM. Every thing works fine on Windows XP sp1 but when I installed service pack 2 I got an access denied when the application tried to create an...
3
by: Ubbe17 | last post by:
Hi, I have a web application that accesses a DCOM. Every thing works fine on Windows XP sp1 but when I installed service pack 2 I got an access denied when the application tried to create an...
1
by: Selden McCabe | last post by:
I have a web service the uses MS Word to do mail merge and printing documents. When I run the service on my development box, it works. When I run in on the server, I get "Access Denied" when it...
0
by: matsla | last post by:
I have followed all guide lines to set up remote debugging but is it possible to do cross-domain remote debugging? I use same account/password on both computers (XP => 2003), added users to debug...
0
by: Rico | last post by:
Helolo, I have an ASP.NET application on a Windows 2003 Server machine WITHOUT VS. I am working on an XPPro machine with VS 2003. I have installed the remote debugging components on the server....
3
by: Simon | last post by:
Hi All, I'm hoping someone will have some words of wisdom for me regarding MS Clustering on Windows 2003. I have a service that runs on a cluster. During invocation it's supposed to...
0
by: royan | last post by:
Help please! I have the same problem which this post ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.