重新启动远程服务器IIS App Pool。 RPC服务器不可用

时间:2012-06-20 18:20:06

标签: .net c#-4.0 iis-7.5 rpc

我有一项服务尝试重新启动同一域中其他服务器上的应用池。该服务在域管理员帐户下运行。 IIS是v.7.5 Windows 2008 R2框。 .NET 4.0。我们冒充这个管理员帐户。

知道为什么会抛出这个错误?活动目录?该帐户没有IIS权限?

提前致谢。

从服务跟踪日志:

GetWebServer: Current Username [before impersonation]: 'MYDOMAIN\domain_admin_account'
GetWebServer: Current Username [during impersonation]: 'MYDOMAIN\domain_admin_account'
GetIISWebServer: Current Username: 'MYDOMAIN\domain_admin_account'
LoadMetaBase: Current Username: 'MYDOMAIN\domain_admin_account'
LoadMetaBase: serverDirectoryEntryPath: 'IIS://SERVERNAME/W3SVC'
The RPC server is unavailable.

The RPC server is unavailable.

GetWebServer: Current Username [after impersonation]: 'MYDOMAIN\domain_admin_account'
The RPC server is unavailable.

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

   at System.DirectoryServices.DirectoryEntry.Bind(Boolean throwIfFail)
   at System.DirectoryServices.DirectoryEntry.Exists(String path)
   at SomeNamespace.IISManagement.IISWebServer.LoadMetaBase()
   at SomeNamespace.IISManagement.IISWebServer..ctor(String serverName)
   at SomeNamespace.IISManagement.IISWebServer.GetIISWebServer(String serverName)
   at SomeNamespace.IISManagement.IISManager.GetWebServer(String serverName)
   at SomeNamespace.IISManagement.IISManager.RestartApplicationPool(String serverName, String applicationPoolName)
   at SomeNamespace.Common.ServiceFunctions.IISAppPoolAction(String serverName, String appPoolName, String action)

1 个答案:

答案 0 :(得分:1)

您是否在远程计算机上安装了WMI提供程序?有关详细信息,请参阅此link