How can I change the default credentials used to connect to Visual Studio Online (TFSPreview) when loading Visual Studio up?
When I load Visual Studio 2012 up, it will attempt to connect to the previous TFS server that it was connected to.
On one of my machines (that also happens to connect to occasionally TFS2008 and TFS2010 servers) always seems to default to completely the wrong account for connecting to Visual Studio Online (tfspreview), and if I were to try and get the latest version, it'll give an error of the form:
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 required permissions (Use) for workspace [my workspace];[my live id].
OK
How can I influence Visual Studio 2012 to default to the correct credentials, rather than a seemingly fictional Account Service one?
I had a very similiar problem as I was not able to connect to TFS with my own credentials. Turned out that the user who had created the image (I was using Hyper-V) stored his account in Credential Manager. There was no way to change this in Visual Studio. To solve the issue, I opened Credential Manager in Control Panel and edited the Generic Credentials to be my own account. I closed and opened Visual Studio 2012, and reconnected to TFS. It prompted me for my credentials, but it connected with my account from then on.
hope this helps, sivilian
You need to remove TFS credentials from Windows Vault to clear and force to ask new TFS credentials in Visual Studio
Go to Control Panel (Start -> Control Panel).
Click User Accounts ( or User Accounts and Family Safety->User Accounts in Windows 7 Machine)
Click Credential Manager (or Manage your credentials)
-
In Credential Manager page, you can see the two type of credentials
i. Windows Credentials ii. Generic Credentials
5.Click on two credentials modify link, click the link Remove from vault to remove stored TFS credentials.
Now, When you login into Visual Studio you will be asked to give credentials to connect TFS.
Note: Don't forgot to uncheck the option Remember my credentials to force to ask credentials for every TFS connections.
I tried opening my Credential Manager but could not find any credentials in there that has any relation to my TFS account.
So what I did instead I logout of my hotmail account in Internet Explorer and then clear all my Internet Explorer cookies and stored password as detailed in this blog: Changing TFS credentials in Visual Studio 2012
After clearing out the cookies and password, restart IE and then relogin to your hotmail (or windows live account).
Then start Visual Studio and try to reconnect to TFS, you should be prompted for a credential now.
Note: A reader said that you do not have to clear out all IE cookies, just these 3 cookies, but I didn't test this.
cookie:@login.live.com/
cookie:@visualstudio.com/
cookie:@tfs.app.visualstudio.com/
I ran into this same issue. Someone had logged onto my computer and used their TFS credentials. I'm running VS2012, Windows 7, and the network admins have Credential Manager disabled.
Run this command from a command window with the same user your running visual studio as.
rundll32.exe keymgr.dll,KRShowKeyMgr
You'll see a popup with all your stored credentials. Remove the one for your TFS server.
Note: You will need to restart visual studio because it caches the tfs credentials.