在Windows 2008 Server R2 64位操作系统上安装ArcGIS Server10 for .NET Framework,安装都很正常,但在登陆srever manager页面管理服务的时候报错:
服务器上发生错误。请查看 Web 服务器上的“事件(应用程序)”日志了解详细信息。
工作站服务没有启动。
显示错误详细信息
Stack Trace: 在 System.DirectoryServices.DirectoryEntry.Bind(Boolean throwIfFail)
在 System.DirectoryServices.DirectoryEntry.Bind()
在 System.DirectoryServices.DirectoryEntry.get_Name()
在 ESRI.ArcGIS.Manager.Security.SecurityHelper.GetDomainName(String machineName)
在 Manager_Framework_Permissions.Page_Load(Object sender, EventArgs e)
在 System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e)
在 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e)
在 System.Web.UI.Control.OnLoad(EventArgs e)
在 System.Web.UI.Control.LoadRecursive()
在 System.Web.UI.Control.LoadRecursive()
在 System.Web.UI.Control.LoadRecursive()
在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
以为是.NET环境或IIS的问题(用ArcCatalog管理server是完全正常的),网上查了下,都说是workstation和server这两服务没启动会报错“工作站服务没有启动”。但我这里的俩服务都启动了啊,莫名其妙了。。。
一度查了好久,还是没头绪。
在manager页面里瞎点,很多页面都会报这个错误,包括添加新服务最后完成时也会报错,但服务却是正常添加上了的。
偶然点到Security——setting的时候,居然提示没有权限,立马茅塞顿开:
原来是我用Server的管理账户登陆的,该账户默认是没添加到操作系统的Administrators组,这样估计就对系统里的目录没有权限访问了。果然添加到系统管理组后就ok了,哎,报个那种错误害死人。。。