Recently one of my customers ran into a TFS workspace issue. They were getting below error when they open TFS project in Visual Studio 2010:

“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.

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

Content developed by: Nitish Nagpal

Content approved by: Lakhminder Singh