How can I change the default credentials used to connect to Visual Studio Online (TFSPreview) when loading Visual Studio?

When I load Visual Studio 2012, it will try to connect to the previous TFS server to which it was connected.

On one of my machines (which also connects sometimes to the TFS2008 and TFS2010 servers) it always seems that the default account is completely incorrect for connecting to Visual Studio Online (tfspreview), and if I tried to get the latest versions, it would give a form error:

Microsoft Visual Studio

Source Control Explorer

TF204017: the operation cannot be completed because the user (Account Service ([my tfs server]) does not have one or more of the required Use permissions for the workspace [my workspace]; [my live identifier].

OK

How can I affect Visual Studio 2012 by default on the correct credentials, and not on the seemingly fictitious account service?

+67
visual-studio-2012 vsts tfs2012
Sep 13
source share
8 answers

I had a very similar problem as I was unable to connect to TFS with my credentials. It turned out that the user who created the image (I used Hyper-V) saved his account in Credential Manager. There was no way to change this in Visual Studio. To solve this problem, I opened the Account Manager in the control panel and edited the general credentials as my own account. I closed and opened Visual Studio 2012 and connected to TFS. This prompted me with my credentials, but it has been associated with my account ever since.

hope this helps, sivilian

+129
Oct 02
source share

You need to remove TFS credentials from Windows Vault in order to clear and force to request new TFS credentials in Visual Studio

  • Go to the Control Panel ( Start → Control Panel ).

  • Click User Accounts (or User Accounts and Family Security-> User Accounts on a Windows 7 Computer)

  • Click Account Manager (or Credential Management )

  • On the Credential Manager page, you can see two types of credentials.

    i. Windows Credentials ii. Generic Credentials 

5.Click on two credentials to change the link, click the Delete from storage link to delete the saved TFS credentials.

Now when you log in to Visual Studio, you will be asked to provide credentials for the TFS connection.

Note Remember to disable the Remember my credentials option to force me to request credentials for all TFS connections.

+30
Sep 14 '13 at 4:59
source share

I tried to open my Credential Manager, but could not find any credentials that have anything to do with my TFS account.

So what I did, instead, I log out of my hotmail account in Internet Explorer and then delete all my cookies and stored passwords in Internet Explorer, as described in this blog: Changing TFS Credentials in Visual Studio 2012

enter image description here

After clearing the cookies and password, restart IE and then go to your hotmail (or active Windows account).

Then start Visual Studio and try to connect to TFS, now you will be prompted for credentials.

Note: The reader said that you do not need to clear all IE cookies, only these 3 cookies , but I have not tested this.

 cookie:@login.live.com/ cookie:@visualstudio.com/ cookie:@tfs.app.visualstudio.com/ 
+12
Jun 21 '13 at 19:29
source share

I ran into this problem. Someone logged into my computer and used their TFS credentials. I am running VS2012, Windows 7, and the account manager is disabled for network administrators.

Run this command from the command line with the same user as your working visual studio.

 rundll32.exe keymgr.dll,KRShowKeyMgr 

You will see a popup window with all your credentials. Delete it for your TFS server.

Note. You will need to restart visual studio as it caches tfs credentials.

+9
Nov 24 '13 at 22:20
source share

You can also try installing reset visual studio

  • Open a Visual Studio Command Prompt

  • Enter the command Devenv /ResetSettings

It will delete the already saved TFS account and request credentials

+2
Sep 22 '14 at 9:26
source share

For Windows 8:

Control Panel → (Search) Credential Manager → Check Web Credentials

it worked for me ...

0
Jun 13 '15 at 3:23
source share

After the manager credential clearing and VS cache clearing fail, consider restoring Visual Studio from the Visual Studio installer (VS2017). I personally have not found another solution.

0
Jan 12 '18 at 9:17
source share

I found another solution:

  • start a session in TEAM
  • go to SOURCE CONTROL and select WORKSPACE (check in red)
  • then Add a new workspace ... why?
  • because you do not work in the same workspace in which you change your account in TFS (I do not know why)
  • and ready to run the MAP project again.

Its 100% guaranteed to work.

-3
Nov 14 '13 at 5:09
source share



All Articles