Wednesday, June 11, 2008

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
If you receive an error, you can try to search for 'VersionControl.config' file and remove it and then try to do the mentioned steps again.
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.

Tuesday, June 10, 2008

'Sharepoint must be installed' error when install Team Foundation Server 2008

Recently, i installed TFS 2008 on Windows 2008. It was quite long and hard challenge.
One of the most annoying error was 'Sharepoint must be installed' message when i tried to install sharepoint services 3.0.
Solution came from updated Team Foundation Installation Guide. You should download Sharepoint Services 3.0 with SP1 and install it.