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