1

我有一项服务尝试在同一域中的不同服务器上重新启动应用程序池。该服务在域管理员帐户下运行。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)
4

1 回答 1

1

您是否在远程计算机上安装了 WMI 提供程序?有关更多信息,请参阅此链接

于 2012-06-20T18:29:10.980 回答