Previous Next

Thread: IIS 7.0 and Windows Server 2008 Service Control manager problem

Last post 08-14-2008 4:10 PM by mukhtard. 3 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (4 items)

Sort Posts:

  • 08-13-2008, 8:11 AM

    IIS 7.0 and Windows Server 2008 Service Control manager problem

    Our application use Classic ASP that calls into a .NET interface to check the status of one of our Services.  We have set up the appication in the IIS 7.0 application pool and assigned a user to it that does not have administrative rights.  Whenever we try to get the service status our C# .NET call to System.ServiceProcess via ServiceController.GetServices method we get the following  exception thrown:

    Cannot open Service Control Manager on computer '.'. This operation might require other privileges. : System.ComponentModel.Win32Exception: Access is denied : System.ServiceProcess

    If we change the user in the IIS 7.0 Process Model Identity and Physical Path Credentials to us 'administrator' everything works fine.

    My question is what authentication setting needs to be changed to allow the non-administrative user to access the services when attached to IIS 7.0?

    Thanks..

  • 08-14-2008, 3:21 PM In reply to

    • mukhtard
    • Top 25 Contributor
    • Joined on 07-07-2008, 5:13 PM
    • Redmond, WA
    • Posts 165

    Re: IIS 7.0 and Windows Server 2008 Service Control manager problem

    Hi,
    You will need to have administrative privileges to be able to work with services. The documentation clearly states that.

    Thanks,
    Mukhtar Desai
    IIS Performance Team

  • 08-14-2008, 3:50 PM In reply to

    Re: IIS 7.0 and Windows Server 2008 Service Control manager problem

    Hello,

    I looked at the documentation and it states that it is 'typically used in an administrative capacity', however I can access the Service Control Manager without being administrator.  I believe the issue is when I access it when I am an object attached to IIS 7.0 it forces the IIS 7.0 user to be administrator.

     Thanks for you response.

  • 08-14-2008, 4:10 PM In reply to

    • mukhtard
    • Top 25 Contributor
    • Joined on 07-07-2008, 5:13 PM
    • Redmond, WA
    • Posts 165

    Re: IIS 7.0 and Windows Server 2008 Service Control manager problem

    As you have already figured the IIS worker process is trying to access services using non-admin privileges and is being denied.

    Thanks,
    Mukhtar Desai
    IIS Performance Team

Page 1 of 1 (4 items)
Page view counter