我正在使用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错误。


当前回答

确保您的密码没有在决定安装新开发机器的同一天恰好过期。

如果您甚至不能使用web界面登录到TFS,那么可能就是这种情况。

其他回答

确保IIS内的网站/应用程序未禁用Windows身份验证。

我不知道这是怎么发生的,但我今天卸载了Hyper-V,以便能够安装VMWare Player,然后重新安装Hyper-V

重新启用它可以让一切重新运转起来。

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

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.

同样的问题没有解决后,尝试所有上述解决方案为我,然后下面的命令解决问题。在windows上打开一个运行命令,复制下面的命令并进行必要的更改,如域\loginname和VS路径

runas /netonly /user:域\登录名"C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Common7\IDE\devenv.exe"

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

如果Rizowski关于点击绿色插头连接按钮的回答不起作用,并且您有多个工作空间,那么通过切换到另一个工作空间并返回,问题可能会消失。