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"
Problem polega na tym, że w rejestrze
HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Enum\
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
mobłoby be the main cause of error?
I greet
student