Welcome to MobyThreads.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in
All support for the MobyThreads Threaded phpBB MOD can now be found on welsolutions at this forum

"General access denied error" under IIS accessin..

 
   Web Hosting and Web Master Forums (Home) -> IIS RSS
Next:  System sizing for web apps  
Author Message
Sean Aitken

External


Since: Mar 18, 2005
Posts: 3



(Msg. 1) Posted: Fri Mar 18, 2005 11:36 am
Post subject: "General access denied error" under IIS accessing remote component
Archived from groups: microsoft>public>inetserver>iis (more info?)

Good afternoon,

I am hitting a rather difficult problem to fix. We have a component
server, COMSERVER, and a web server WEB-A and WEB-B. COMSERVER has been
around for some time, and so has WEB-A. We have a custom component on
COMSERVER with a role 'Local Users'. This role contains the IUSR_WEB-A
account, which allows WEB-A to access the components on the COMSERVER
machine. Both of these machines are Windows 2000.

Recently, we deployed a new web server, WEB-B, which is Server 2003.
Running the component Proxy installer, I installed the proxy COM+ app,
which in turn was automatically configured to talk to COMSERVER.

Creating a test.vbs script, I verified that with my own credentials I
was able to instantiate components from WEB-B. It worked.

Trying to instantiate that same component from IIS via. ASP pages yields
the following error in the event log:

DCOM got error "General access denied error " from the computer
<<COMSERVER>> when attempting to activate the server:
{F51AC338-115C-40F2-A261-481926F7DE1C}

The user that this error is associated with is 'IUSR_WEB-B', which is
the anonymous user account for IIS. This user has been added to the
same role as 'IUSR_WEB-A'. Also, on the component server, I have added
this user to the group that is allowed launch access to DCOM.

Oddly, when I run my test.vbs script using 'runas' with the IUSR
account, it works!!! Because I can successfully instantiate my component
with a VBS file and the IUSR_WEB-B account, I know that DCOM security
with respect to my target component is setup correctly. It's when this
component is instantiated through IIS and ASP that I get the 'General
access denied' error.

Also, when the error occurs, nothing is entered in the event log of the
component server. I believe this is normal. (I have failure auditing
turned on for both boxes)

So, if anyone can shed some light on my problem, I will be greatly
appreciative. I have a hunch it's to do with IIS intrinsics, but
haven't tested that. I know they are disabled on the component server.


Cheers!!
-Sean

 >> Stay informed about: &quot;General access denied error&quot; under IIS accessin.. 
Back to top
Login to vote
jackieja

External


Since: Aug 26, 2003
Posts: 392



(Msg. 2) Posted: Fri Mar 18, 2005 1:35 pm
Post subject: RE: "General access denied error" under IIS accessing remote component [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Microsoft want to make Windows 2003 more secure, so they changed the way
they are sending anonymous account credentials, we have 2 solutions for
this problem

(1)Use the same Userid/password between these 2 machines (Recommended),Make
this user
id as anonymous user

(2) Or you can use domain account as an anonymous account

MORE INFO:
=============
The product documentation is pretty good about explaining the changes that
occurred IIS 6:

<http://www.microsoft.com/technet/treeview/default.asp?url=/technet/prodtech
nol/wind
owsserver2003/proddocs/standard/sec_auth_anonauth.asp>

Basically, the sub authentication stuff was removed by default on a clean
install - so you effectively have the "allow iis..." checkbox unchecked out
of the box. This means your metabase password needs to be correct.

This also dictates what kind of logon you get from IIS - with the subauth
logon, you got a network token (just like NTLM) and so an outbound request
would/should look like NTAUTHORITY\ANONYMOUS LOGON. Without the subauth
logon (allow iis... is unchecked/default in IIS 6), you get the logon type
based on what is specified in the LogonMethod metabase property which by
default is NETWORK_CLEARTEXT (which translates to the win32 logon type
LOGON32_LOGON_NETWORK_CLEARTEXT. In IIS5, this was INTERACTIVE by default.
With NETWORK_CLEARTEXT, you get similar behavior as interactive (server
can impersonate the client) but you can't actually logon
interactively at the console with this logon type.

Hope this helps!

Thank you,

Jackie Jaynes [MSFT]
Microsoft IIS
JackieJa RemoveThis @online.microsoft.com

Please do not send email directly to this alias. This
is our online account name for newsgroup participation only.

This posting is provided "AS IS" with no warranties, and confers no rights.
You assume all risk for your use. © 2001 Microsoft Corporation. All rights
reserved.

 >> Stay informed about: &quot;General access denied error&quot; under IIS accessin.. 
Back to top
Login to vote
Sean Aitken

External


Since: Mar 18, 2005
Posts: 3



(Msg. 3) Posted: Fri Mar 18, 2005 3:15 pm
Post subject: Re: "General access denied error" under IIS accessing remote component [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Jacqueline Jaynes [MSFT] wrote:

 > Microsoft want to make Windows 2003 more secure, so they changed the way
 > they are sending anonymous account credentials, we have 2 solutions for
 > this problem
 >
 > (1)Use the same Userid/password between these 2 machines (Recommended),Make
 > this user
 > id as anonymous user
 >
 > (2) Or you can use domain account as an anonymous account

Wow.. this is the most helpful information I have seen all day! Thank
you very much for the considerable effort! After looking into the
'SubAuthentication' and other details, the steps I took were:

- Register the Sub Authentication library
- Set the web site to 'Low' isolation (per instructions)

Oddly, when I viewed the 'AnonymousPasswordSync' value in the metabase
for the server, it was set to '1', or true ALREADY!

Additionaly, the IUSR_WEBSERVER account actually being used on this box
IS a domain account. (I renamed it to IUSR_WEB-B to protect the innocent)

So, long story short, it seems that the following two changes both
allowed the component calls to work:

1) Changing 'AnonymousPasswordSync' to false and setting the context to
'Low' isolation. (This is odd because it seems to contradict the docs
you referred me to)
2) Leaving everything as default and changing the global Isolation mode
(Right click "Web Sites") to NOT 'Run WWW service in IIS 5.0 isolation
mode'.

Very bizarre. So, I have noted this and give many thanks for the pointers.

I'm still confused as to how this all ties back to IIS passing
credentials through a DCOM call to a remote server, but I'm not gonna
complain.

Cheers!
-Sean<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: &quot;General access denied error&quot; under IIS accessin.. 
Back to top
Login to vote
Sean Aitken

External


Since: Mar 18, 2005
Posts: 3



(Msg. 4) Posted: Fri Mar 18, 2005 5:33 pm
Post subject: Re: "General access denied error" under IIS accessing remote component [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

This is interesting.

I've reverted back to IIS5.0 isolation model.

When I set AnonymousPasswordSync to '0', it partially works. When I set
it to 1, nothing works. "Access denied" on every call.

Hitting the COM+ server, removing component identity checks, it's able
to call a few methods. The others return "Permission denied".

When I run the app in VB on my machine in debug mode and change the
'location' attribute of the COM+ proxy to my machine, it works just fine!!

SO, there still seems to be something amuck.
Perhaps it is the intrinsics? Do I need to disable those on the web
server as well??

Thanks!!!
-Sean
 >> Stay informed about: &quot;General access denied error&quot; under IIS accessin.. 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
General Access Denied Error - After several hours of troubleshooting here is a summary of my problem: ASP pages will not display on WinXP Pro/IIS 5.1 when typing http:/localhost in IE6 IE6 Message is: Server Application Error The server has encountered an error while loading an..

"General access denied error" on all sites - I am getting the "General access denied error" in the event log when trying to access any site on my localhost. The browser displays HTTP:500 error. I also get it with the IISAdmin & IISHelp sites. The server is running with no errors othe...

Web page Error - &quot;The system cannot find the file spe.. - All, We have a web application and are facing a strange problem at one of our customer's intranet site. When people try to access certain web pages (.asp), they are getting "HTTP 500 - Internal server error (Page cannot be displayed)". We...

IISState - Runtime error 203 &quot;This thread is blocked .. - The system is Windows 2003 with IIS6 - No ISAPI filters are loaded through MMC aside from the asp.net filter in the global properties. Any advice is appreciated. I will gladly contact IIS support if this is something they could potentially help with. ...

Using &quot;Offline Files&quot; in IIS - I'm setting up a laptop to do some asp.net work while travelling. This calls for the IIS server on the laptop to serve the aspx files that I usually work on from my desktop. I set up "offline files" and synchronization, but when I try to point...
   Web Hosting and Web Master Forums (Home) -> IIS All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]