Files could not be found in workspace

Sandy picture Sandy · Jul 23, 2012 · Viewed 40.5k times · Source

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.

Answer

Sandy picture Sandy · Nov 5, 2012

Sorry for bothering everyone. In the end I took the latest version to solve the issue.