#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2012
    Posts
    2
    Rep Power
    0

    Add user to active directory by iis7


    Hi,
    I put the web application on iis 7, where I join active directory, which is on a different local server:
    DirectoryEntry directoryEntry = this.GetDirectoryEntry("IIS://" + Environment.UserDomainName + "/W3SVC/AppPools/"

    + applicationPool);

    in the application pool is a user who connects to the active directory, the connection is on his nicknames.
    I would like to use it to create users in Active Directory. All the time are errors:

    System.Runtime.InteropServices.COMException (0x800706BA): Serwer RPC is unavailable.


    Solutions in web:


    "The RPC server is unavailable. (Exception from HRESULT: 0x800706BA)" error may occurs when deploying VNC to a

    remote computer or when using built-in management tools.
    There can be a few reasons for this error:

    The remote computer is blocked by the firewall.
    Solution: Open the Group Policy Object Editor snap-in (gpedit.msc) to edit the Group Policy object (GPO) that

    is used to manage Windows Firewall settings in your organization. Open Computer Configuration, open

    Administrative Templates, open Network, open Network Connections, open Windows Firewall, and then open either

    Domain Profile or Standard Profile, depending on which profile you want to configure. Enable the following

    exception: "Allow Remote Administration Exception" and "Allow File and Printer Sharing Exception".

    Host name or IP address is wrong or the remote computer is shutdown.
    Solution: Verify correct host name or IP address.
    The "TCP/IP NetBIOS Helper" service isn't running.
    Solution: Verity that "TCP/IP NetBIOS Helper" is running and set to auto start after restart.
    The "Remote Procedure Call (RPC)" service is not running on the remote computer.
    Solution: Verity that "Remote Procedure Call (RPC)" is running and set to auto start after restart.
    The "Windows Management Instrumentation" service is not running on the remote computer.
    Solution: Verity that "Windows Management Instrumentation" is running and set to auto start after restart.


    Best of all, all of these services are implemented and tested. I noticed a lack of an entry in the registry:

    LEGACY_RPCSS and perhaps found a solution:

    Windows Registry Editor Version 5.00

    [HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Enum\Root\LEGACY_RPCSS]
    "NextInstance"=dword:00000001

    [HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Enum\Root\LEGACY_RPCSS\0000]
    "Service"="RpcSs"
    "Legacy"=dword:00000001
    "ConfigFlags"=dword:00000020
    "Class"="LegacyDriver"
    "ClassGUID"="{8ECC055D-047F-11D1-A537-0000F8753ED1}"
    "DeviceDesc"="Remote Procedure Call (RPC)"

    [HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Enum\Root\LEGACY_RPCSS\0000\Control]
    "ActiveService"="RpcSs"



    The problem is that the register

    HKEY_LOCAL_MACHINE \ SYSTEM \ ControlSet001 \ Enum \

    I do not have permission to modify the keys there, iis is placed on windows server 2008, do you think that this

    be the main cause of error?

    I greet
    student
  2. #2
  3. No Profile Picture
    Grumpier old Moderator
    Devshed Supreme Being (6500+ posts)

    Join Date
    Jun 2003
    Posts
    14,430
    Rep Power
    4539
    Moved from the asp forum.

    If you want to change registry entries and don't have permission to do so you'll have to take your proposed changes to the server administrator and ask to have the changes made.
    ======
    Doug G
    ======
    Bartender to Rene Descartes "have another beer?" Descartes: "I think not" and he vanished.
    --Alfred Bester
  4. #3
  5. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2012
    Posts
    2
    Rep Power
    0
    Originally Posted by Doug G
    Moved from the asp forum.

    If you want to change registry entries and don't have permission to do so you'll have to take your proposed changes to the server administrator and ask to have the changes made.
    I'm the admin, I can change registry in upper levels, but I can't change in root level.
  6. #4
  7. No Profile Picture
    Grumpier old Moderator
    Devshed Supreme Being (6500+ posts)

    Join Date
    Jun 2003
    Posts
    14,430
    Rep Power
    4539
    first, let me say I have no clue about a solution to your problem.

    If you can't change a registry value, you are either not really the administrator user, or the registry value is a microsoft read-only value. In windows 7 anyway, if you don't start regedit with "run as administrator" special privileges you don't have full admin privileges even though your user account is a member of the administrators group.
    ======
    Doug G
    ======
    Bartender to Rene Descartes "have another beer?" Descartes: "I think not" and he vanished.
    --Alfred Bester
  8. #5
  9. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2012
    Posts
    24
    Rep Power
    0
    Go to roles and add IIS7.0 roles. Open IIS7.0 server management and add users by right clicking on it.

IMN logo majestic logo threadwatch logo seochat tools logo