Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: 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"
 

 
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
Posted 10-Sep-12 11:39am

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

Hi,
1)Go to services and check RPC is running.
2)Check the firewall status.
3)Edit group policy.
 
These are the steps i used in windows7.I think, this will work on server 2008.
If not,Its better to approach domain concept.
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 George Jonsson 215
1 Kornfeld Eliyahu Peter 169
2 OriginalGriff 120
3 PIEBALDconsult 110
4 Zoltán Zörgő 99
0 OriginalGriff 6,165
1 DamithSL 4,658
2 Maciej Los 4,107
3 Kornfeld Eliyahu Peter 3,649
4 Sergey Alexandrovich Kryukov 3,342


Advertise | Privacy | Mobile
Web03 | 2.8.141220.1 | Last Updated 21 Dec 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100