Visual Studio 2010 file not found in your workspace

I get this message when I connect to the TFS repository and try to edit a local .sql file that is not already in the repository .

Element C: \ bla \ blabla \ blablabla \ USP_BLA.sql could not be found in your workspace or you do not have access to it. No products have been checked.

If I disconnect from the TFS repository, everything will be fine. If I connect to the TFS repository again, I will start receiving a message, even just trying to enter / save the file.

The file is actually located in my local folder, and I have the appropriate permissions for those who think otherwise. This is just a text file that I have to edit, whether it's connected to the repository or not.

I installed Windows SP1 on my Windows 7 this morning; I don’t know if this could be the cause of the problem. We are using the .NET Framework 4.

Any idea what the problem is or how to solve it?

+4
source share
2 answers

It turns out that the problem is related to one of the “facts” in my question “file that is not yet in the repository”.

The file with the same name that I had locally was already in the TFS repository, it was registered a month ago by someone else.

Only when I tried to register a new local copy did I become aware of this; the file should not have been there.

In any case, after checking the file from TFS, everything returned to normal; I can edit / save the file without problems, even if it is connected to TFS.

+6
source

Try to get the latest source code. He must solve the problem. Or get a specific version and allow overwriting existing files. If still not allowed, verify that the file is in the local directory.

Remember to rebuild after receiving the last code

0
source

All Articles