简体   繁体   English

TF30063错误在Azure DevOps中打开已打开项目并已连接到本地TFS服务器的项目,或者选择了Team Explorer选项卡

[英]TF30063 error opening projects in Azure DevOps with a project already open connected to on-premises TFS server, or with Team Explorer tab selected

I am sometimes encountering "TF30063" errors in Visual Studio 2019 when connecting to an Azure DevOps (TFVC) repository. 连接到Azure DevOps(TFVC)存储库时,有时在Visual Studio 2019中遇到``TF30063''错误。

I am using Visual Studio 2019 (v16.1.4 at the moment) on a Windows 10 Pro (version 1809) workstation. 我正在Windows 10 Pro(1809版)工作站上使用Visual Studio 2019(当前为v16.1.4)。 This workstation previously had Visual Studio 2017. 该工作站以前具有Visual Studio 2017。

We have a department repository at dev.azure.com, configured as a TFVC repository (not Git). 我们在dev.azure.com上有一个部门存储库,配置为TFVC存储库(不是Git)。 This repository was originally created when Azure DevOps was VSTS, but we weren't using it for anything until recently, after it had been converted to Azure DevOps. 该存储库最初是在Azure DevOps是VSTS时创建的,但是直到将其转换为Azure DevOps之后,我们才将其用于任何用途。

When opening a project that has its source managed in Azure DevOps in Visual Studio 2019, I have been encountering an error like this at times: 当在Visual Studio 2019中打开在Azure DevOps中管理其源代码的项目时,有时会遇到这样的错误:

TF30063: You are not authorized to access dev.azure.com/[ORG-NAME] TF30063:您无权访问dev.azure.com/[ORG-NAME]

Sometimes the error occurred when opening the project, and at other times when attempting to get the latest version of files or checking files in or out from the Azure DevOps repository. 有时,在打开项目时以及在其他时间尝试获取最新版本的文件或从Azure DevOps存储库中签入或签出文件时,都会发生错误。

I have been searching for this issue online for a few weeks, and have tried various suggested solutions, such as clearing the ".IdentityService" folder, or clearing out some specific AppData local/temp folders, or logging out of and back into Azure DevOps, etc. Some of these seemed to resolve the issue temporarily, but the issue always returned. 我一直在网上搜索此问题已有几个星期,并尝试了各种建议的解决方案,例如清除“ .IdentityService”文件夹,清除某些特定的AppData本地/临时文件夹或注销并重新登录到Azure DevOps。等等。其中一些似乎可以暂时解决问题,但问题总是会再次出现。

However, I now believe I know how to reliably cause this issue (and how to resolve it in the short term). 但是,我现在相信我知道如何可靠地引起此问题(以及如何在短期内解决它)。

I have discovered that I can reliably cause this TF30063 error in either of two ways: 我发现可以通过以下两种方式之一可靠地导致此TF30063错误:

  1. If I have Visual Studio open with a project connected to our on-premises TFS server, and then I open another instance of Visual Studio with a project that is connected to Azure DevOps. 如果我使用连接到本地TFS服务器的项目打开了Visual Studio,然后使用连接到Azure DevOps的项目打开了Visual Studio的另一个实例。

  2. If I don't have any other projects open, but the last time that I had Visual Studio open, I left the "Team Explorer" tab selected (for example, because I had just checked in some files), and I open a project connected to Azure DevOps. 如果我没有打开任何其他项目,但是上次打开Visual Studio时,则未选中“ Team Explorer”选项卡(例如,因为我刚刚签入了一些文件),然后打开了一个项目连接到Azure DevOps。

In either of the above cases, I will encounter the TF30063 error when I open a project connected to Azure DevOps (either when I first open the project, or when I attempt to perform any source control operations). 在上述两种情况下,当我打开连接到Azure DevOps的项目时(第一次打开该项目或尝试执行任何源代码控制操作时),我都会遇到TF30063错误。 In either case, the solution is relatively simple, as follows: 无论哪种情况,解决方案都相对简单,如下所示:

  1. If Visual Studio is showing the "Team Explorer" tab/panel, select the "Solution Explorer" tab/panel. 如果Visual Studio显示“团队资源管理器”选项卡/面板,请选择“解决方案资源管理器”选项卡/面板。

  2. If Visual Studio had already been showing the "Solution Explorer" tab, select the "Team Explorer" tab and then select the "Solution Explorer" tab again. 如果Visual Studio已经显示“解决方案资源管理器”选项卡,请选择“团队资源管理器”选项卡,然后再次选择“解决方案资源管理器”选项卡。

  3. Make sure that the "Solution Explorer" tab is currently selected, and close this instance of Visual Studio (if I have other Visual Studio instances open that are connected to the on-premises TFS server, I can leave those open). 确保当前选择了“解决方案资源管理器”选项卡,然后关闭此Visual Studio实例(如果我打开了其他与本地TFS服务器连接的Visual Studio实例,则可以将其保持打开状态)。

  4. Re-open the same project (connected to Azure DevOps) in Visual Studio, and now everything seems to be fine. 在Visual Studio中重新打开同一项目(连接到Azure DevOps),现在一切似乎都很好。

Does anyone else have any additional information on this TF30063 error with Azure DevOps repositories, or any additional suggestions for resolving or working around the issue? 使用Azure DevOps存储库,是否还有其他人对此TF30063错误有任何其他信息,或者有任何其他有关解决或解决该问题的建议?

Please try below and see if it helps. 请在下面尝试,看看是否有帮助。

  • Close all instances of VS 关闭所有VS实例
  • Delete %localappdata%.IdentityService 删除%localappdata%.IdentityService
  • Restart VS 重启VS

another approach: 另一种方法:

  • Close all VS instances. 关闭所有VS实例。
  • delete your VS appdata folder and then open VS 删除VS appdata文件夹,然后打开VS

Though this will reset all your setting. 虽然这将重置所有设置。 Hope it helps. 希望能帮助到你。

If you still face the same issue , please raise a request in below link. 如果您仍然遇到相同的问题,请在下面的链接中提出要求。

https://developercommunity.visualstudio.com/content/problem/post.html?space=8 https://developercommunity.visualstudio.com/content/problem/post.html?space=8

you can do it from here too: 您也可以从这里进行:

在此处输入图片说明

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 解决Visual Studio 2017的问题-TFS无法连接到服务器-错误TF30063 - Fixing issue with Visual studio 2017 - TFS not able to connect to server - error tf30063 TF30063: 您无权访问 Collection。 Nuget 和 Tfs 冲突 - TF30063: You are not authorized to access Collection. Nuget and Tfs conflicting TF30063:您无权访问 dev.azure.com 但我可以连接 - TF30063:You are not authorized to access dev.azure.com but I can connect 错误或 Azure DevOps 错误:TF402484 人事团队项目已被删除 - Error or Azure DevOps Error: TF402484 The personnel team project has been deleted TF命令行密码验证TF30063 - Tf command line password authentication TF30063 将本地TFS迁移到Visual Studio Online时出错 - Error when migrating on-premises TFS to Visual Studio Online 我们可以将本地TFS用户帐户用于Visual Studio Team服务吗? - Can we use the on-premises TFS user account for Visual Studio Team services? 在TFS 2015内部部署中使用Xcode - Using Xcode with TFS 2015 on-premises 获取 TF30063:您无权访问 https://{url}.visualstudio.com/ - Getting TF30063: You are not authorized to access https://{url}.visualstudio.com/ TF30167尝试在VS 11和TFS 11中创建新的团队项目时出错 - TF30167 Error trying to create new team project in VS 11 and TFS 11
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM