1

VisualStudio 2015.1 Die Enterprise/TFS-Integration funktionierte ordnungsgemäß, bis VS2015 Update 2 angewendet wurde.Nach dem Anwenden von Update 2 VisualStudio 2015 Enterprise kann keine Verbindung zu TFS herstellen - Ausnahme TF205020

Neuinstallieren/Reparieren von Visual Studio nicht das Problem beheben, werden immer:

TF205020: Could not connect to server ...... The server returned the following error:

Could not load type Microsoft.VisualStudio.Services.WebApi.Utilities.UserAgentUtility' from assembly 'Microsoft.VisualStudio.Services.WebApi, Version=14.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.

SETUP:

VS Unternehmen 2.015,2 TFS 2015,2

Antwort

2

Wir hatte das gleiche Problem hier. Das erneute Installieren von Visual Studio 2015 nach dem Löschen von Cache, Benutzerprofilordnern und Registrierungseinstellungen hat uns nicht weitergeholfen. Es sieht so aus, als ob eine TestComplete 11.31-Installation einige Assemblys im GAC installiert, die mit Visual Studio 2015 Update 2 in Konflikt stehen. Wir haben das Problem beim Vergleich zweier fast identischer Systeme (eins mit und ohne TestComplete) behoben und diese Assemblys aus% WINDOWS% gelöscht. Microsoft.NET \ assembly-Ordner:

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

Aber das Problem bestand immer noch. Nach dem Entfernen:

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

das Problem war verschwunden!

Ich hoffe, das Ihr Problem helfen ...

+1

Dank! Wir haben auch SmartBear TestComplete 11.31 auf dem gleichen System installiert. Das Problem ist gelöst! – lermar

+0

Das hat mich auf den richtigen Weg gebracht, und das brachte mich ans Ende: https://connect.microsoft.com/VisualStudio/Feedback/Details/2601931/Team-Explorer-nicht-Working-in-vs2015-2 – WraithNath

0

Um dieses Problem zu eingrenzen:

  1. Überprüfen Sie Windows Ereignisanzeige für weitere Informationen zu den Fehlern.
  2. Versuchen klar TFS und VS-Cache, Detail Schritt mit diesem sicher blog
  3. Versuchen Sie, dass Sie die Web- accesshttp TFS zugreifen können: //: 8080/tfs/web/
0

Die gleiche wie diese Ausgabe: Extension fails to load on VS2015.2, versuchen Sie mit der Lösung darin:

Can you check if Microsoft.VisualStudio.Services.WebApi.dll is installed into the GAC? The easiest way to do this is to check if there is a folder that starts with v14.0.0.0 under the c:\Windows\Microsoft.NET\assembly\GAC_MSIL\Microsoft.VisualStudio.Services.WebApi.

I suspect you have an assembly from VS 2015 RTM or VS 2015 Update 1 in the GAC. Uninstalling it, will fix the issue.

0

Dank Ernstjan Freriks, diese zusätzlichen Informationen hat mir geholfen :

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.