Files could not be found in workspace

Viewed 43917

I am using Visual Studio 2010 professional with TFS as a source control and everything was working fine. In morning I came I opened my solution and it opened as Offline. I tried going online, and it says

"Workspace for this solution could not be found."

(I don't remember the exact error sentence).

I closed my solution. I went to pending changes window -> workspace ComboBox -> manage workspace. I edited my workspace and mapped my solution to the already existing folder.

Now I was able to see my pending changes in the window. I opened my solution again. I tried checking out a file, and I got error:

"file could not be found in workspace, or you don't have permission to access the file."

Any pointers for this except taking the latest version or the specific version. In manage workspace, my workspace was private.

6 Answers

Just exclude the file which causes problem from the project and re-include it again

Related