Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Today, while trying to publish an app so I could test it, I suddenly got this error message:

The item D:\ScratchSrc\TryNewReportViewer2017\TryNewReportViewer2017\TryNewReportViewer2017.csproj.vspscc could not be found in your workspace, or you do not have permission to access it.

That's a mystery to me, as I've never gotten this before and I was working with this app just last week. Publishing it, too.

I've looked for the .vspscc file. Found it exactly where it said it should be. So, the alternative is that I don't have permissions to it. I don't understand why I shouldn't have permissions to a file on my machine that I created, but whatever. So, how do I get permissions to my own file?

I'm working with VS 2017, TFS 2015 on premise.

like image 407
Rod Avatar asked Jul 10 '17 17:07

Rod


2 Answers

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 .

like image 157
PatrickLu-MSFT Avatar answered Sep 17 '22 23:09

PatrickLu-MSFT


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.

like image 45
cskwg Avatar answered Sep 17 '22 23:09

cskwg