About Me

My photo
"O Allah, make my love for You the most beloved thing to me, and my fear for You the most fearful thing to me, and remove from me all worldly needs and wants by instilling a passion for meeting You, and when You have given the people of the world the pleasures of their world, make the coolness of my eyes (pleasure) in worshipping You." Ameen

Tuesday, March 17, 2009

How to change user in Team Explorer

Since i installed Team Foundation Server 2008, i used Administrator login for test purposes. But after that i couldn't change user in team explorer.
To do it, you should run Stored User Names and Passwords dialog box, to do so, either run command rundll32 keymgr.dll,KRShowKeyMgr or open it from control panel
Select your server and press Change button. Type new username in popup window.

But if you try to change a file in VS you'll get error "TF14091:You cannot perform this operation on workspace workspace;server\username because you are not the owner of the workspace."
To fix the error, you should remove old workspace and add new.
(Note, you should check-in your pending changes to avoid data loss).
1. Run Visual Studio 2008 Command Prompt (Start->All Programs->Microsoft Visual Studio 2008->Visual Studio Tools->Visual Studio 2008 Command Prompt)
2. Type tf workspace /delete yourcomputername /server:servername
3. Type tf workspace /new /server:servername and fill fields in popup window

Last thing you should do is to open your project, right-click on solution and select Get Latest Version command.

Source - http://ogolikhin.blogspot.com/2008/06/how-to-change-user-in-team-explorer.html