Getting a "vspscc could not be found in your workspace, or you do not have permission to access it" error

This issue may due to the wrong source control binding for that specific xx.vspscc file.

Double check your source control bindings for that file in TFS. You could also try to unbind and rebind the file.

Then delete the file in local(back up local changes first) and get latest version from TFS. Finally do the publish again.

If above solution is still not working, try to delete local workspace and create a new one, get latest version of the file, modify the file with local changes (if you have) in your backup , check in the file, then do the publish .


Another reason for this problem is, that the vspscc file is not checked in. Just do a "Compare" on the project folder to see, if it's missing.


If the csproj.vspscc is missing you can create a new one by removing the project in visual studio and adding it back