Access Denied - Network Service vs Local Service

Ask a Question related to ASP.NET Security, Design and Development.

  1. #1

    Default Access Denied - Network Service vs Local Service

    I have been struggling with my ASP.NET (V1.1 sp1) websites getting an 'Access
    Denied' message.

    I have track down the problem (I think) to the IIS Connection Pools. Most
    MS Info suggests keeping the 'Identity' set as 'Network Service' to provide
    greater security.

    However, I have found that if I change the Identity to 'Local Service' my
    websites now work! What am I missing? Why does setying connection pool
    'Identity' set as 'Network Service' cause an 'Access Denied' message?

    Thanks for your help!
    mangia Guest

  2. Similar Questions and Discussions

    1. 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...
    2. DPAPI Service Start access is denied
      Hi, Following the procedures for "How To:Use DPAPI (User Store) from ASP.NET with Enterprise Services" from Building Secure ASP NET Applciations...
    3. Web Service Access Denied with MS Word
      I have a web service that uses MS Word to do mail merge and printing. It works fine when running on my development machine. But when I deploy it...
    4. Windows authentication on a Web service returning Access Denied (401).
      Hey, I've been asked to look into network security where an IIS virtual directory is configure to not have anonymous access, but rather to go...
    5. Web Service Credentials - Access Denied
      I am having problems passing the credentials from the current user to the Web Service. THANK YOU in advance for any help!! Web Service and Web...
  3. #2

    Default Re: Access Denied - Network Service vs Local Service

    Well, it seems that Local Service has access to something that Network
    Service does not.

    What exactly are you getting an Access Denied on? What is the exact error
    message?

    Cheers
    Ken

    "mangia" <mangia@discussions.microsoft.com> wrote in message
    news:21556E9A-50EE-4816-BF8E-8FBCB0332123@microsoft.com...
    >I have been struggling with my ASP.NET (V1.1 sp1) websites getting an
    >'Access
    > Denied' message.
    >
    > I have track down the problem (I think) to the IIS Connection Pools. Most
    > MS Info suggests keeping the 'Identity' set as 'Network Service' to
    > provide
    > greater security.
    >
    > However, I have found that if I change the Identity to 'Local Service' my
    > websites now work! What am I missing? Why does setying connection pool
    > 'Identity' set as 'Network Service' cause an 'Access Denied' message?
    >
    > Thanks for your help!

    Ken Schaefer Guest

  4. #3

    Default Re: Access Denied - Network Service vs Local Service

    I have a Windows 2003 Sever that I have had running fine several .NET
    websites for over a year now.

    Two weeks ago I decided to change my anonymous FTP site access from
    'granted' and denied' IP addresses to 'not anonymous’ and require username
    password access. I created an ‘FTPGuest’ user account and gave it the file
    permissions I
    wanted. Tested the FTP site access and it works fine from within the LAN
    and/or from outside the WAN.

    However, now when I attempt to access my website I receive an IE webpage
    that ONLY SAYS “Access is denied.”, and nothing else. I see no error or
    information in the Event logs. I spent most of the afternoon playing with
    Permissions, User Accounts and Directory Security settings, but nothing has
    helped.

    Chris

    "Ken Schaefer" wrote:
    > Well, it seems that Local Service has access to something that Network
    > Service does not.
    >
    > What exactly are you getting an Access Denied on? What is the exact error
    > message?
    >
    > Cheers
    > Ken
    >
    > "mangia" <mangia@discussions.microsoft.com> wrote in message
    > news:21556E9A-50EE-4816-BF8E-8FBCB0332123@microsoft.com...
    > >I have been struggling with my ASP.NET (V1.1 sp1) websites getting an
    > >'Access
    > > Denied' message.
    > >
    > > I have track down the problem (I think) to the IIS Connection Pools. Most
    > > MS Info suggests keeping the 'Identity' set as 'Network Service' to
    > > provide
    > > greater security.
    > >
    > > However, I have found that if I change the Identity to 'Local Service' my
    > > websites now work! What am I missing? Why does setying connection pool
    > > 'Identity' set as 'Network Service' cause an 'Access Denied' message?
    > >
    > > Thanks for your help!
    >
    >
    >
    mangia Guest

  5. #4

    Default Re: Access Denied - Network Service vs Local Service

    If you are seeing nothing other than "Access is denied", then I don't think
    you are seeing an error direct from IIS - do you have a proxy server in the
    way that might be "interpreting" a message returned from IIS?

    What do you see in the IIS Logfiles for the requests in question? Eg what is
    the HTTP status and substatus?

    Cheers
    Ken

    "mangia" <mangia@discussions.microsoft.com> wrote in message
    news:A37CD2B9-245B-4219-A6B2-F5B77FD18A1A@microsoft.com...
    >I have a Windows 2003 Sever that I have had running fine several .NET
    > websites for over a year now.
    >
    > Two weeks ago I decided to change my anonymous FTP site access from
    > 'granted' and denied' IP addresses to 'not anonymous' and require username
    > password access. I created an 'FTPGuest' user account and gave it the
    > file
    > permissions I
    > wanted. Tested the FTP site access and it works fine from within the LAN
    > and/or from outside the WAN.
    >
    > However, now when I attempt to access my website I receive an IE webpage
    > that ONLY SAYS "Access is denied.", and nothing else. I see no error or
    > information in the Event logs. I spent most of the afternoon playing with
    > Permissions, User Accounts and Directory Security settings, but nothing
    > has
    > helped.
    >
    > Chris
    >
    > "Ken Schaefer" wrote:
    >
    >> Well, it seems that Local Service has access to something that Network
    >> Service does not.
    >>
    >> What exactly are you getting an Access Denied on? What is the exact error
    >> message?
    >>
    >> Cheers
    >> Ken
    >>
    >> "mangia" <mangia@discussions.microsoft.com> wrote in message
    >> news:21556E9A-50EE-4816-BF8E-8FBCB0332123@microsoft.com...
    >> >I have been struggling with my ASP.NET (V1.1 sp1) websites getting an
    >> >'Access
    >> > Denied' message.
    >> >
    >> > I have track down the problem (I think) to the IIS Connection Pools.
    >> > Most
    >> > MS Info suggests keeping the 'Identity' set as 'Network Service' to
    >> > provide
    >> > greater security.
    >> >
    >> > However, I have found that if I change the Identity to 'Local Service'
    >> > my
    >> > websites now work! What am I missing? Why does setying connection
    >> > pool
    >> > 'Identity' set as 'Network Service' cause an 'Access Denied' message?
    >> >
    >> > Thanks for your help!
    >>
    >>
    >>

    Ken Schaefer Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139