Cannot update TFS workspace

Today i run into a TFS workspace issue. I was getting below error when i open TFS project in Visual Studio 2008:

“TF14091: you cannot perform this operation on workspace. domain/eid are not the owner of the workspace”

Issue cause: VS cache the login credentials for workspace. When we try login with current credentials still it take old credentials from cache.

Solution: Clear the cache and reload it. Follow below steps to do that:

Step 1: Open VS command prompt. (For VS 2008 workspace, open VS 2008 command prompt. If you try to use command prompt, command will not work.)

Step 2: Run below command to clear the local cache.

tf workspaces /remove:*

Step 3: Run below command to set the Owner for respective TFS server

tf workspaces /s:TFS_ServerName

Thats it!!! Now you can open VS and access TFS without any issues.

%d bloggers like this: