This error has the following cause and solution:
To check out a file not yet added to source control, use the Add Files command to add files. If the file is already in your project, make sure it is not already checked out.
This error sometimes occurs if someone deletes the file that you wanted to operate on (or deletes the whole project, for that matter)- make sure your project is still there.