Unlocking a checked out file in Source Control

Greetings,
I'm trying to unlock a file which is checked out by another user ( who happens to be out of the office), if i try to do an 'unlock' from the source control explorer i get the message:

The item $/Myproj/MyFile.cs is locked for checkout by THEDOMAIN\theuser in workspace WORKSPACENAME;THEDOMAIN\theuser

I'm a member of the domain admins so i've got unlockother permissions...

Any insight would be much appreciated!

[636 byte] By [JustinMerth] at [2008-2-5]
# 1

This is a bug. I was just able to reproduce the same exact situation here in a test environment. I'm not on the version control team so I'm not sure if this is considered a "known issue" or not, but I'm logging a bug for you and will post back with any workaround information that comes my way in the hopes it can help.
Eric Jarvi
http://blogs.msdn.com/ejarvi

EricJarvi at 2007-9-8 > top of Msdn Tech,Visual Studio Team System,Visual Studio Performance Tools (Profiler)...
# 2

Actually, when you specify commands via the Source Control Explorer window, the system tries to run them on the current workspace selected in the workspace dropdown. The file is not actually locked in your workspace, hence you're getting the error message.

You can do this through the command line client (start -> all programs -> visual studio 2005 beta 2 -> visual studio tools -> visual studio 2005 command prompt). You have to specify the other user's workspace using the /workspace option.

h lock /lock:none $/<full path to the file>/filename /workspace:usersworkspacename

For example, say that Joe has a file locked in workspace "JoesWorkspace"

h lock /lock:none $/TeamProject/WidgetProject/Widgets/main.cs /workspace:JoesWorkspace

JasonBarileMSFT at 2007-9-8 > top of Msdn Tech,Visual Studio Team System,Visual Studio Performance Tools (Profiler)...
# 3
I got the message.
No workspace matching XXX found on this computer.
RobertoN at 2007-9-8 > top of Msdn Tech,Visual Studio Team System,Visual Studio Performance Tools (Profiler)...
# 4
Ouch! That sounds... well... wrong. Is that the way it'll work for RTM?
CarlDaniel at 2007-9-8 > top of Msdn Tech,Visual Studio Team System,Visual Studio Performance Tools (Profiler)...

Visual Studio Team System

Site Classified