Wednesday, March 18, 2020

D365FO - Reassign TFS workspace

Common error:

The path K:\AOSService\PackagesLocalDirectory is already mapped in workspace...

or

The working folder K:\AOSService\PackagesLocalDirectory is already in used by workspace..

Assume that you are using VS2015 for D365FO development. All the activities below to be performed in the DEV machine where you have issues with TFS workspace. Signout and close Visual Studio.

Step 1: Download and Install Team Foundation Sidekicks 2015
(http://www.attrice.info/cm/tfs/)

Step 2: From Windows Start, Open 'Developer command prompt for VS2015'

Step 3: Change directory to 'C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE'

Step 4: Reset user data from command prompt with the command "devenv /resetuserdata"

Step 5: Have a VSTS admin account to login to VS and then connect to VSTS project. Provide the credentials information as prompted.

Step 6: Now, sign out and exit from VS.

Step 7: Open the  'Team Foundation Sidekicks 2015' apps. Provide the Team foundation server name and VSTS admin credentials.

Step 7: Go to Tools > Workspace sidekick. Filter the local VM name and user name with a date range to view the existing workspace mapping information.

Step 8: Upon found, delete working folder map and delete workspace name.

Step 9: Close the apps.

Step 10: Now open the VS with the credentials for the new user who will be using the Development environment. Connect to VSTS project and perform mapping to local package folder to VSTS.

1 comment:

  1. You can also delete the workspace using the VS command prompt, without any additional installation:
    https://axdax.blogspot.com/2022/05/delete-vs-workspaces-for-other-users.html

    ReplyDelete