1

在应用 VS2015 更新 2 之前,VisualStudio 2015.1 Enterprise/TFS 集成运行良好。

重新安装/修复 VisualStudio 并没有解决问题,请继续:

TF205020: 无法连接服务器……服务器返回如下错误:

无法从程序集“Microsoft.VisualStudio.Services.WebApi,Version=14.0.0.0,Culture=neutral,PublicKeyToken=b03f5f7f11d50a3a”加载类型 Microsoft.VisualStudio.Services.WebApi.Utilities.UserAgentUtility。

设置:

VS 企业版 2015.2 TFS 2015.2

4

4 回答 4

3

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

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

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

  • Microsoft.TeamFoundation.Client
  • Microsoft.TeamFoundation.WorkItemTracking.Common

问题消失了!

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

于 2016-04-22T08:33:21.290 回答
0

感谢 Ernstjan Freriks,这个附加信息(最初来自 Microsoft Connect)帮助了我:

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.
于 2016-06-20T13:24:25.850 回答
0

要缩小此问题的范围:

  1. 检查 Windows 事件查看器以获取有关错误的更多信息。
  2. 尝试清除 TFS 和 VS 缓存,此博客的详细步骤
  3. 尝试确保您可以访问 TFS 网络访问 http://:8080/tfs/web/
于 2016-04-13T13:14:14.513 回答
0

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

您能否检查 Microsoft.VisualStudio.Services.WebApi.dll 是否已安装到 GAC 中?最简单的方法是检查 c:\Windows\Microsoft.NET\assembly\GAC_MSIL\Microsoft.VisualStudio.Services.WebApi 下是否有以 v14.0.0.0 开头的文件夹。

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

于 2016-04-22T08:33:49.817 回答