Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Azure by (45.3k points)

I log onto my server with one set of credentials and open Visual Studio 2012 using "Run as different user" (Shift + Right-click) as I need a second set of credentials to deploy to my dev. env. SharePoint site.

I have previously done above and then connected to TFS using a third set of credentials, as the my user (second set credentials) didn't have access yet. Now my user have access and I wish to use these credentials instead.
TFS automatically logs me in with the third set credentials every time I open VS using "Run as different user" - However, if I open VS normally without using "Run as different user" I get prompted for login to the TFS.

I have tried checking the Windows credentials and there is nothing there. And I can't log onto the server using the second set credentials as only the first set can access the server with Remote Desktop.

So how do I "clear" cached TFS credentials when using "Run as different user"?

1 Answer

0 votes
by (16.8k points)

ou need do below steps:

  1. Do not save any windows credentials in the Credential Manager for that TFS server, if you already saved credentials, please refer to the blog:http://blogs.msdn.com/b/visualstudioalm/archive/2012/08/29/clearing-the-credentials-for-connecting-to-a-team-foundation-server.aspx to clear them.
  2. Clean team foundation cache on your client machine, the folder path is: C:\Users\username(Team Explorer user name)\AppData\Local\Microsoft\Team Foundation\4.0\Cache. (TFS 2012)
  3. Delete cookies in browser and disconnect TFS.

Additionally, you can try this another way: Press Shift + right key click on VS shortcut and choose Run as different user

Browse Categories

...