如何重新获得对 Team Foundation Server 工作区的访问权限?
我在 TFS 服务器上重新启动了 IIS,从那时起我就无法访问我的工作区。
无论我做什么,它都会不断创建一个由服务帐户(而不是我的公司帐户)拥有的工作区。
几天前,我使用“以不同用户身份运行”打开 SSMS 2008 并使用该服务帐户。这是我认为它出现在画面中的唯一方式。
因此,如果我运行 tf Workspaces /owner:* ,我会看到两个工作区,一个由我拥有,另一个由服务拥有。
当我打开VS2010时,它加载服务帐户拥有的工作区,并且我无法查看其他工作区。在错误的缓存上运行 tf /delete 会删除它,运行 tf /remove:* 会清除我的缓存,但是当我打开 VS2010 时,它会再次创建。
我尝试使用“以不同用户身份运行”运行 VS2010 并使用我的凭据,但没有成功。
有人对如何恢复我的工作空间有任何想法吗?
I restarted IIS on our TFS server, and ever since then I haven't been able to access my workspace.
Regardless of what I do, it continually creates a workspace owned by a service account, and not my corporate account.
A couple days ago I had opened SSMS 2008 with "Run as different user" and used that service account. That's the only way I can think that it got in the picture.
So if I run tf workspaces /owner:*
I see two workspaces, one owned by me, and one owned by the service.
When I open VS2010, it loads the workspace owned by the service account, and I can't view the other workspaces. Running tf /delete
on the wrong one deletes it and running tf /remove:*
clears my cache, but when I open VS2010, it is created again.
I tried running VS2010 with "Run as different user" and used my credentials, with no luck.
Anyone have any ideas as to how to get my workspace back??
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您可以使用
tfworkspace
命令的/newowner
标志更改工作区的所有者。例如:这应该作为权宜之计,让您的旧工作区归服务帐户所有。要更新此内容,请确保您没有在控制面板 -> 中保存 TFS 服务器的凭据。凭证管理器。这些凭据将始终覆盖您登录的用户凭据或为
runas
指定的任何内容。You can change the owner of a workspace using the
/newowner
flag to thetf workspace
command. For example:This should work as a stopgap measure to allow your old workspace to be owned by the service account. To update this, make sure that you do not have credentials saved for your TFS server in Control Panel -> Credential Manager. These credentials will always override your logged in user credentials or anything specified to
runas
.所以,这不是一个答案,而是一个解决方法。
我将实际工作区设置为公共,现在我至少可以加载它。
我不知道为什么 VS/TFS 认为我是一个服务帐户。
编辑:原来我将 tfs 服务器的服务帐户凭据保存在凭据管理器中。删除凭据并重新启动 VS2010 解决了该问题。
So, not an answer, but a workaround.
I set the actual workspace to public, and now I can at least load it.
I have no idea why VS/TFS thinks I am a service account.
EDIT: Turns out I had the service account credentials for the tfs server saved in Credential Manager. Removing the credentials and restarting VS2010 resolved the issue.