我正在使用TFS预览(团队基础服务)与我的Visual Studio 2012项目之一。我的大多数项目都使用本地TFS服务器。当我在使用TFS预览后使用我的本地TFS并返回使用TFS预览时,我得到这个错误:

TF30063:您没有权限访问MyProject\DefaultCollection。

如果我去团队→断开TFS,然后再次连接到TFS预览,我能够看到一个“加载标识符”加载屏幕出现,但最后我不能输入我的凭据到TFS预览(我的微软帐户),因此,TF30063错误仍然发生。

我怀疑这与我的微软帐户(即Live ID)有关。我用我在TFS预览中使用的同一个微软帐户登录到Windows。我曾使用其他微软账号登录过其他网站(Windows Development Center, MSDN等),但我验证了如果我注销了这些服务,并使用正确的微软账号重新登录,当我试图从Visual Studio登录TFS预览时,仍然会得到TF30063错误。


当前回答

目前的答案都对我不起作用。我在这里找到了解决办法。

The issue was that my previous credentials were cached by the Windows OS for the TFS server. While some people might have had success wiping out the AppData temp folders, that is not required. You need to update the credentials through Control Panel on the Windows OS. For me on Windows 10: Close VS. Go to Control Panel (with small icon view)-->User Accounts-->Manage your credentials (on the left column)-->Select "Windows Credentials"-->Scroll down to the "Generic Credentials" section and look for your TFS server connection. Expand the pull down and click "Edit". Enter in new network password. Reopen VS and everything should work again.

其他回答

对我来说,这个错误发生在我更改了我的AD帐户密码之后。

我必须从凭据管理器中删除该行(其中包含以前的密码)。

然后它又起作用了。

我在TFS升级后遇到过这个问题,Visual Studio不知怎么缓存了无效的登录凭据。我找到了两种方法来修复它,首先,使用这个答案,我完全重置Visual Studio,然后重新连接:

点击菜单工具→导入导出设置→重置所有设置→下一步→“不,只是重置设置,覆盖所有当前设置”→下一步→完成。

出于某种奇怪的原因,重置后它连接没有问题(重置后我甚至不需要重新输入我的凭据或重新配置TFS)。

第二种方法更简单。首先关闭Internet Explorer和Visual Studio的所有实例,然后打开Internet Explorer并浏览到TFS,登录,然后再次打开Visual Studio并尝试再次连接到TFS。

这种情况经常发生在我身上,上面描述的解决方案没有一个每次都有效。 大多数情况下,使用“连接到团队项目按钮”的解决方案工作正常,但当我这样做时,有时什么也没有发生。

其他时候,我只能使用Visual Studio内置浏览器(Ctrl+Alt+R)或Internet Explorer重新登录http://tfs.visualstudio.com。

(正如在其他一些回答中所建议的那样,对我来说,这不是由多个live-id引起的)

只要重新启动visual Studio就可以了。当我这样做的时候,它就像魔法一样有效

试着暂时将ie设置为默认浏览器。