index > Team Foundation Server - Setup > File is exclusively checked out by another user

File is exclusively checked out by another user


Hi, how can I unlock files which are exclusively checked out by another user?

Thx, Petr




Petr Horinek
Petr Horinek

If the team project is set up to disallow multiple checkout, you'll have to undo the other user's change. Otherwise, you'll have to unlock it. The first requires "UndoOther" permission on the file, while the latter requires "UnlockOther". In either case, you'll have to use the command line to unlock the file.

The syntax for undoing another user's change is:
tf undo $/Project/folder/file.txt /workspace:WorkspaceName;DOMAIN\username /s:servername

The syntax for unlocking another user's lock is:
tf lock /lock:none $/Project/folder/file.txt /workspace:WorkspaceName;DOMAIN\username /s:servername

Note that the WorkspaceName and username have to be the names of the workspace and user which have the file locked. You can find this out by running "tf status /workspace:* $/Project/folder/file.txt".

Hope this helps!

Cheers,
Adam




This posting is provided "AS IS" with no warranties, and confers no rights.
Adam Singer MSFT
What is happening if I am building/running a website and the system is trying to check out supporting .dlls that I am not intending on checking out? I'm just running the site, and it is checking out all of these .dlls, causing everyone else to be locked up.
jmgscott

Are they DLLs that are being placed in the /bin directory by the build as a result of references the web project has to other projects (e.g. a reference to a class library)?

There have been some bugs where such files are incorrectly identified as being source-controllable and have Source Control pending adds created for them.

There is a hotfix available (915110) that resolves some of these scenarios. We have since identified additional scenarios that were not covered by the hotfix, and a second hotfix is in the works to cover those.

--Ben Ryan




Visual Studio - TFS Version Control
Ben Ryan
reply 4

You can use google to search for other answers

 

More Articles

Problems with Sql server
Unable to create project/manage security/users on VPC version
Error 3200 ... /ReportServer/ReportService.asmx returned a non-ze...
I cannot create a team project
404 error alert when trying to connect to team server
unhandled exception on install!!!
Access Denied :User domain\name needs the UseSystem global permis...
Cannot Add Domain Users
TFS console or administrative tool
Installing TFS on a SharePoint Portal Server 2003
Welcome to Bokebb   New Update   Joins the collection  
 

New Articles

Moving Foundation Server
How to verify what is the version of TFS…
How to access and specify the path of fi…
TFS on Domain Controller?
How to add users to the TS project?
Can't back up WSS content database since…
Error 29109
Project Site Login error to Report Server
Error TF84037 with Excel Team Foundation…
TF30162 Error Project Creation Wizard en…
Integration between WSS and SPS
Unable to install Team Explorer
Getting sharepoint back after Beta 3R mi…
TFSAdminUtil.exe not found!
TFS and SQL 2005?

Hot Articles

TF30177: Team Project Creation Failed (H…
Where is TFS Admin access?
Beta 3 Install
Builds fail on clean RTM install (split …
TF31002 within Team Explorer
Error 30170 - 30177 - 30144
28940 Error when Installing TFS
Team Foundation Server Beta3 Setup Failed
TF30177: Team Project Creation Failed
Agile Template download fails
I installed (with very difficults) Team …
Moving Team Foundation Server to a diffe…
How to access and specify the path of fi…
Using fully qualified names to project p…
TFS setup - Red X on Documents and Repor…

Recommend Articles

E-mail Alerts Problem
Step Missing From Install Guide for Dual…
TF30177: Team Project Creation Failed
Sharepoint Portal Error 2003 Urgent!!!!!
using SQL 2000 with team foundation server
Exclude Reporting/Analysis services
SQL not found
Error 32000 and Error 28100
Team Foundation Suite backward compatibi…
TF30274: Error occurred while uploading …
TFS BETA3 & SHAREPORINT err!
ADFS a solution for Internet /non truste…
Problems with istalling...
Team foundation server notification not …
TF30177:Team Project Creation Failed (He…