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

后端 未结 8 1607
抹茶落季
抹茶落季 2020-12-01 01:00

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 connec

相关标签:
8条回答
  • 2020-12-01 01:02

    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

    0 讨论(0)
  • 2020-12-01 01:06

    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

    enter image description here

    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/
    
    0 讨论(0)
  • 2020-12-01 01:08

    You can also try to reset visual studio setting

    1. Open Visual Studio Command Prompt

    2. Enter command Devenv /ResetSettings

    It will remove already saved TFS account and ask for credentials

    0 讨论(0)
  • 2020-12-01 01:08

    After failing with cleaning the Credentials from the Manager and clearing the VS cache, consider to repair Visual Studio from the Visual Studio Installer (VS2017). I personally found no other solution working.

    0 讨论(0)
  • 2020-12-01 01:11

    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.

    0 讨论(0)
  • 2020-12-01 01:14

    i found another solution:

    1. start session in TEAM
    2. go to SOURCE CONTROL and select WORKSPACE (mark in red)
    3. then Add new Workspace... why?
    4. because you dont work in the same workspace whey you change your account in TFS (i dont know why)
    5. and ready to MAP your project again.

    Its 100% guaranteed to work.

    0 讨论(0)
提交回复
热议问题