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/"
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
"DeviceDesc"="Remote Procedure Call (RPC)"
Problem polega na tym, że w rejestrze
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?