Working folder already in use

Jun 13, 2012 at 10:50 AM
Edited Jun 13, 2012 at 10:51 AM

When I try and do a Get-LastVersion, I get the below error. I do have Visual Studio also mapped to the workspace, but surely I should be able to do both?

Thanks for any help,

Dan

 

Get-LastVersion : System.Web.Services.Protocols.SoapException: The working folder C:\TFS is already in use by the workspace
 ****** on computer *******.
   at Microsoft.TeamFoundation.VersionControl.Server.Repository.UpdateWorkspace(String oldWorkspaceName, String ownerName,
Workspace newWorkspace, Int32 supportedFeatures)
At line:1 char:16
+ Get-LastVersion <<<<  -TFS $tfs -Source "$/companyname/Internal" -Path "C:\TFS\Code"
    + CategoryInfo          : WriteError: (:) [Get-LastVersion], WorkingFolderInUseException
    + FullyQualifiedErrorId : <ID>,PowerShell.Host.PsTFS.CdmLet.Get_LastVersion