昨晚尝试从TFS 2013 RTM升级到TFS 2013.2时,我收到以下错误消息。我以管理员身份运行安装,我是组织的TFS管理员,我在我们的暂存环境中运行从TFS 2013 RTM到TFS 2013.2的升级没有问题。两种环境的唯一区别是集合DB不完全相同。
[Error @22:27:44.807]
Exception Message: TF255077: The access control list (ACL) could not be set on the following path: D:\TFS\CacheRoot . (type ConfigurationException)
Exception Stack Trace: at Microsoft.TeamFoundation.Admin.FileSystemHandler.SetAcls(String[] identities, String[] pathsForAccess, Boolean skipIfAclExists, ITFLogger logger)
at Microsoft.TeamFoundation.Admin.ConfigureSetAcls.Run(ActivityContext context)
Inner Exception Details:
Exception Message: Invalid name.
Parameter name: name (type ArgumentException)
Exception Stack Trace: at System.Security.AccessControl.NativeObjectSecurity.CreateInternal(ResourceType resourceType, Boolean isContainer, String name, SafeHandle handle, AccessControlSections includeSections, Boolean createByName, ExceptionFromErrorCode exceptionFromErrorCode, Object exceptionContext)
at System.Security.AccessControl.NativeObjectSecurity..ctor(Boolean isContainer, ResourceType resourceType, String name, AccessControlSections includeSections, ExceptionFromErrorCode exceptionFromErrorCode, Object exceptionContext)
at System.Security.AccessControl.DirectorySecurity..ctor(String name, AccessControlSections includeSections)
at System.IO.Directory.GetAccessControl(String path)
at Microsoft.TeamFoundation.Admin.FileSystemHandler.AddAccessToDirectory(String groupName, FileSystemRights rights, String path, Boolean skipIfAclExists, ITFLogger logger)
at Microsoft.TeamFoundation.Admin.FileSystemHandler.SetAcls(String[] identities, String[] pathsForAccess, Boolean skipIfAclExists, ITFLogger logger)
[Info @22:27:44.807] Node returned: Error
[Error @22:27:44.807] TF255077: The access control list (ACL) could not be set on the following path: D:\TFS\CacheRoot .
[Info @22:27:44.807] Completed SetApplicationACLs: Error
[Info @22:27:44.807] -----------------------------------------------------
[Info @22:27:44.808] Execution results:
[Info @22:27:44.808] Overall result: Failure
答案 0 :(得分:0)
发现在以下位置的web.config文件中的文件夹位置条目的两端都有空格; C:\ Program Files \ Microsoft Team Foundation Server 12.0 \ Application Tier \ Web Services。
add key =" dataDirectory"值=" D:\ TFS \ CacheRoot"
我删除了空格,安装工作完美。我不知道他们是如何到达那里的,但我认为原始的TFS 2013 RTM安装可能已经完成了这一点,因为我在安装过程中给出了选项时将安装指向该文件夹。