the solution includes one or more projects that could not be mapped to a local directory

Tom McDonald
Tom McDonald used Ask the Experts™
on
I am trying to check out a project from team foundation server and I keep getting the following two errors:

1) the binding information for this solution could not be retrieved from its source control provider
2) the solution includes one or more projects that could not be mapped to a local directory

As a result, source control integration with VS 2008 doesn't work.  My workaround is to manually check things out and in using the TFS GUI.  I would like a fix.
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Tom McDonaldDeveloper

Author

Commented:
The next error message that pops up (after those already named above) is:

3) the solution you have opened is under source control, but not currently configured for integrated source control in Visual Studio.  Would you like to bind this solution to source control now?

I choose 'yes' and it brings up the 'Change Source Control'.  I can then select from two options.  The first names the solution file and the second names the path to the code (an IIS web site written in asp.net C#).  There is a bind button but that does not do anything when I click it.  The other buttons are grayed out except for 'OK' and 'Cancel'.  I click 'OK' and it brings up the project, but there is no integration with the source control.
Tom McDonaldDeveloper

Author

Commented:
Here are some screen shots
the-binding-information.png
When you are in TFS explorer and navigate to the projects that are affected, is there a "local path" showing in blue above the file list pane, and do those folders exist?
Maybe post content of solution file?
Are there any other source control type files in your project folder that should be deleted?
Developer
Commented:
The answer is just check things out manually and it will fix itself.  I can't explain this, but after working on the project (and checking things out manually from TFS) visual studio suddenly integrated itself, i.e., I could check things in and out from the solution panel.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial