« Previous Next »

Not Answered Thread: Error when remoteley managing IIS Users

Last post 10-21-2009 9:19 AM by relliky2d. 4 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (5 items)

Sort Posts:

  • 10-16-2009, 11:22 AM

    • relliky2d
    • Not Ranked
    • Joined on 10-16-2009, 11:20 AM
    • Posts 5

    Error when remoteley managing IIS Users

    Filename: MACHINE/WEBROOT The configuration section 'system.webServer/management/authentication' cannot be read because it is missing a section declaration

    I am trying to add an IIS Manager user using the IIS API, which works when running locally on Vista, but when I try and run the same code on a test server, I get the above error. What is the difference between local and remote in this case, and how do I fix it?

    Thanks

  • 10-20-2009, 2:12 AM In reply to

    Re: Error when remoteley managing IIS Users

    Hi,

    The default installation of IIS 7.0 does not include the Management Service role service. Please make sure the Management Service role service was installed on your test server.

    For more information about the Management Authentication element, you can refer to:

    Management Authentication <authentication>
    http://www.iis.net/ConfigReference/system.webServer/management/authentication

    Leo Tang
    Microsoft Online Community Support

    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
  • 10-20-2009, 8:39 AM In reply to

    • relliky2d
    • Not Ranked
    • Joined on 10-16-2009, 11:20 AM
    • Posts 5

    Re: Error when remoteley managing IIS Users

    Thank you for the reply. I have Management Service installed already, still getting the error. Any other ideas?

  • 10-20-2009, 10:58 PM In reply to

    Re: Error when remoteley managing IIS Users

    Hi,

    Could you please post the code here ? What is the test server's Operating System version ?

    Leo Tang
    Microsoft Online Community Support

    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
  • 10-21-2009, 9:19 AM In reply to

    • relliky2d
    • Not Ranked
    • Joined on 10-16-2009, 11:20 AM
    • Posts 5

    Re: Error when remoteley managing IIS Users

    Windows Server 2008 R2 Standard 64

    I am using the Microsoft IIS Examples, which makes me think its a server config error. I get the error when calling either GetUsers or CreateUser.

    public static bool CreateUser(string userName, string password)
    {
    try
    {
    ManagementUserInfo info=ManagementAuthentication.CreateUser(userName, password);
    if (info != null)
    return true;
    else
    return false;
    }
    catch (Exception ex)
    {
    throw new HostingManagementException(ex.Message, ex);
    }
    }

    EDIT: The administration.config on my local machine does NOT have the system.webServer/management/authentication tags, yet works fine. The administration.config on the remote test server DOES have these tags, but does not work - and complains the config section cannot be read because it is missing a section delcaration..??
    When I try to remove these tags from the remote .config, I get an Internal Server Error 500 message, and it won't even load up.

Page 1 of 1 (5 items)
Microsoft Communities