应用更新2后,VisualStudio 2015 Enterprise无法连接到TFS - 例外TF205020

时间:2016-04-12 12:02:35

标签: tfs visual-studio-2015 tfs2015 team-explorer publickeytoken

VisualStudio 2015.1 Enterprise / TFS集成工作正常,直到应用VS2015更新2。

重新安装/修复VisualStudio没有解决问题,不断获取:

  

TF205020:无法连接到服务器......服务器返回以下错误:

     

无法加载类型Microsoft.VisualStudio.Services.WebApi.Utilities.UserAgentUtility'来自assembly' Microsoft.VisualStudio.Services.WebApi,Version = 14.0.0.0,Culture = neutral,PublicKeyToken = b03f5f7f11d50a3a'。

SETUP:

VS Enterprise 2015.2 TFS 2015.2

4 个答案:

答案 0 :(得分:3)

我们在这里遇到了同样的问题。删除缓存,用户配置文件文件夹和注册表设置后重新安装Visual Studio 2015对我们没有帮助。看起来像TestComplete 11.31安装在GAC中安装了一些与Visual Studio 2015 Update 2冲突的程序集。我们修复了比较两个几乎相同的系统(一个有一个没有TestComplete)的问题以及我们从%WINDOWS%中删除的这些程序集Microsoft.NET \ assembly文件夹:

  • Micorosft.VisualStudio.Services.Client
  • Micorosft.VisualStudio.Services.Common
  • Micorosft.VisualStudio.Services.Integration
  • Micorosft.VisualStudio.Services.WebApi

但问题仍然存在。删除后:

  • Microsoft.TeamFoundation.Client
  • Microsoft.TeamFoundation.WorkItemTracking.Common
问题消失了!

我希望这会对您的问题有所帮助......

答案 1 :(得分:0)

缩小此问题的范围:

  1. 检查Windows事件查看器以获取有关错误的更多信息。
  2. 尝试清除TFS和VS缓存,详细步骤blog
  3. 尝试确保您可以访问TFS网站 accesshttp://:8080 / TFS /网络/

答案 2 :(得分:0)

与此问题相同:Extension fails to load on VS2015.2,请尝试使用其中的解决方案:

  

您可以查看Microsoft.VisualStudio.Services.WebApi.dll是否正确   安装到GAC?最简单的方法是检查是否   有一个文件夹以v14.0.0.0开头   C:\的Windows \ Microsoft.NET \组件\ GAC_MSIL \ Microsoft.VisualStudio.Services.WebApi

     

我怀疑你有一个来自VS 2015 RTM或VS 2015 Update 1的程序集   GAC。卸载它,将解决问题。

答案 3 :(得分:0)

感谢Ernstjan Freriks,这个额外的信息帮助了我:

https://connect.microsoft.com/VisualStudio/feedback/details/2601931/team-explorer-not-working-in-vs2015-2

The Tfs client binaries should not be in your GAC. The only way they would get there is to add them yourself, or install some 3rd party application that has added them. Once they are in the GAC they will be loaded instead of the binary that matches your version of TeamExplorer or tf.exe. You need to remove all instances of any Team Foundation binary from the GAC including the following:

Microsoft.TeamFoundation.Build2.WebApi.dll
Microsoft.TeamFoundation.Chat.WebApi.dll
Microsoft.TeamFoundation.Common.dll
Microsoft.TeamFoundation.Core.WebApi.dll
Microsoft.TeamFoundation.Diff.dll
Microsoft.TeamFoundation.Discussion.Client.dll
Microsoft.TeamFoundation.Discussion.WebApi.dll
Microsoft.TeamFoundation.Git.Client.dll
Microsoft.TeamFoundation.Lab.Client.dll
Microsoft.TeamFoundation.Lab.Common.dll
Microsoft.TeamFoundation.Lab.TestIntegration.Client.dll
Microsoft.TeamFoundation.Lab.WorkflowIntegration.Client.dll
Microsoft.TeamFoundation.Policy.WebApi.dll
Microsoft.TeamFoundation.ProjectManagement.dll
Microsoft.TeamFoundation.SharePointReporting.Integration.dll
Microsoft.TeamFoundation.SourceControl.WebApi.dll
Microsoft.TeamFoundation.Test.WebApi.dll
Microsoft.TeamFoundation.TestImpact.Client.dll
Microsoft.TeamFoundation.TestManagement.Client.dll
Microsoft.TeamFoundation.TestManagement.Common.dll
Microsoft.TeamFoundation.TestManagement.WebApi.dll
Microsoft.TeamFoundation.VersionControl.Client.dll
Microsoft.TeamFoundation.VersionControl.Common.dll
Microsoft.TeamFoundation.VersionControl.Common.Integration.dll
Microsoft.TeamFoundation.Work.WebApi.dll
Microsoft.TeamFoundation.WorkItemTracking.Client.DataStoreLoader.dll
Microsoft.TeamFoundation.WorkItemTracking.Client.dll
Microsoft.TeamFoundation.WorkItemTracking.Client.QueryLanguage.dll
Microsoft.TeamFoundation.WorkItemTracking.Common.dll
Microsoft.TeamFoundation.WorkItemTracking.Proxy.dll
Microsoft.TeamFoundation.WorkItemTracking.WebApi.dll
Microsoft.VisualStudio.Services.Client.dll
Microsoft.VisualStudio.Services.Common.dll
Microsoft.VisualStudio.Services.WebApi.dll

You can use gacutil to remove these. Once removed your issue should be fixed.