No workspace exists for the given Team Project

I get the above error when trying to set up a new Build Type for a Team Project I just created.

I was able to successfully create the project and the corresponding source control branch, as well as add a solution to it (which successfully was added to SCC also).

All of the workspace mappings between my local folders and SCC seem to be valid and working. It does not seem that the workspaces it is looking for are the same workspaces as these?

I suspect that this problem may stem from the fact that I had previously created a project under the same name and deleted it using DeleteTeamProject.exe (successfully, or so I thought).

Is there any way for me to fix this?

[676 byte] By [chooch] at [2007-12-16]
# 1
additional info: its not just the project that I am reusing the name for that causes this error - its ANY new project.

I am unable to create a new Build Types for any new project I create.

chooch at 2007-8-21 > top of Msdn Tech,Visual Studio Team System,Team Foundation Server - General...
# 2
I'm having this issue also. I had created a build type for a different project, but cannot on this particular one. All the workspace/working folder information seems correct.
Jonas at 2007-8-21 > top of Msdn Tech,Visual Studio Team System,Team Foundation Server - General...
# 3
I was able to create a build type for another project also just before this - and the funny part is that I reused a name from a previous project that I had deleted before and it worked fine. so I guess re-using a name doesn't seem to have anything to do with it.
chooch at 2007-8-21 > top of Msdn Tech,Visual Studio Team System,Team Foundation Server - General...
# 4
I don't know if I've re-used any names or not, but I have 2 projects in TFS right now, and I can create new builds on one, but not the other.
Jonas at 2007-8-21 > top of Msdn Tech,Visual Studio Team System,Team Foundation Server - General...
# 5

Please make sure that the workspace has a mapping to the Team Project you are trying to create a build type for. We have issues around multi rooted workspaces in Beta2, so please make sure that all local folder mappings have the same root, for e.g., the build type creation wizard does recognize the workspace if it contains mappings to different local folders say ‘c:\documents and settings\foobar1’ and ‘d:\foobar2’

To make quick progress, you may want to create a new workspace altogether as follows:

- Open VS command prompt

- Run 'h workspace /new /s:<TFSServerName>'

- Create a mapping between $/<TeamProjectName> and a local folder in the opened dialog and say OK

You can now use this workspace to create the build type.

Thank you,
Nagaraju Palla,
Visual Studio Team System | Team Build

This post is provided as-is and without warranty

NagarajuPallaMSFT at 2007-8-21 > top of Msdn Tech,Visual Studio Team System,Team Foundation Server - General...
# 6
that worked for me!

I deleted my existing workspace and created the new one using the command line and everything works fine now. I added back all the folder mappings I had created before and all is good.

thanks!

chooch at 2007-8-21 > top of Msdn Tech,Visual Studio Team System,Team Foundation Server - General...
# 7
I have created a complete new workspace and defined a directory for the root of the Source-Control Container ($/) but I still get this error message.

I created the workspace using File > Source Control > Workspaces..., though! I _did_ remove all local projects and used the source control explorer to retrieve a new version into the new workspace.

For some projects, I am able to add a new build type, but not for others?!?

Could there be another cause?

TilfriedWeissenberger at 2007-8-21 > top of Msdn Tech,Visual Studio Team System,Team Foundation Server - General...
# 8
FYI: I have found a post which talks about a limitation which causes this: http://forums.microsoft.com/msdn/ShowPost.aspx?PostID=4442

In short: temporarely remove all other project paths from your workspace and keep only one for the project you want to create a build type for. After you created the type, you can restore the mapping. This limitation is fixed post-SP2.

TilfriedWeissenberger at 2007-8-21 > top of Msdn Tech,Visual Studio Team System,Team Foundation Server - General...

Visual Studio Team System

Site Classified