Title: Visual Studio 2017 can't connect to TFS 2017: LoadCachedCredentialsFormRegisterdProviders Method not found
Tags: visual-studio;tfs
Question: We are using Visual Studio 2017 &amp; TFS 2017.
I have access to TFS web portal &amp; TFS server (remote, share, db,..) &amp; ... and everything works, but I can't connect with Visual Studio (just in my pc).
Error is:
```
```Server 'http://tfs:8080/tfs' was not added.```
```Method not found:```
```'Microsoft.VisualStudio.Services.Common.VssCredentials```
```Microsoft.VisualStudio.Services.Common.VssCredentials.LoadCachedCredentialsFromRegisteredProviders(System.Uri, Boolean ByRef)'.```
```

Firewall is Off
Antivirus is Disable
Remove All Credentials in Credential Manager
Check port access with telnet
VS Version is 15.5.6
TFS Version is 15.117.26714.0

Any advice?
Screenshot

Comment: Seems it's the VS issue, try to repair VS, or reset user data : `C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\devenv.exe /resetuserdata`. It that still not work, just try to install the [standalone Team Explorer 2017](https://blogs.msdn.microsoft.com/bharry/2017/04/05/team-explorer-for-tfs-2017/), then try it again.

Comment: So, it proves that it's an issue with the installation of  VS 2017. I tested on my side, can not reproduce this issue. You can check if this issue occurs on other machines, also try to uninstall it completely then reinstall.

Comment: Have you resolved the issue?

Comment: I tried all of that!!

Comment: I try VS 2015 and can be connected without problem!

Comment: I try that. Uninstall > Restart > Install.
I probably have to reinstall Windows.

Comment: I could not solve the problem. I had to reinstall windows.

Comment: The problem was resolved only after the installation of Windows!


Here is another answer: I recently ran into this issue and after hours and hours of searching on the Internet, I found a post suggesting to install the Microsoft.TeamFoundationServer.ExtendedClient package from Nuget.  I added this package to the project that connected to the TFS server and the error went away.

I should note that I tried pretty much everything else I found, including reinstalling VS2017 on my original machine, then installing VS2017 on a fresh VM and getting the same exact error.


{'source': 'StackExchangeDataset', 'subset': 'stackoverflow.com', 'metadata': {'AnswerCount': 1, 'CommentCount': 8, 'ContentLicense': 'CC BY-SA 3.0', 'CreationDate': '2018:00:02/19/18', 'FavoriteCount': None, 'PostTypeId': 1, 'Tags': '<visual-studio><tfs>', 'Title': "Visual Studio 2017 can't connect to TFS 2017: LoadCachedCredentialsFormRegisterdProviders Method not found", 'ViewCount': 934, 'id': 48865136, 'user_AboutMe': '<p>I am a senior full stack programmer with more than 10 years of work record and experience in consulting, teaching, team management, and project management. I have been involved in small to large projects in my years of work. In most projects, I have been in a teamwork. In addition, I have done many projects as a full-stack programmer. In any case, I have been trying to be useful for the team, project, and the company by doing my best.</p>\n', 'user_AccountId': 10084815.0, 'user_DisplayName': 'Shahram Vafadar', 'user_Reputation': 154.0, 'user_Views': 16.0, 'user_id': 7453830.0}}