Home: TFS Error "[file]not be found in your workspace, or you do not have permission to access it" during upgrade or uninstall when solution/project is bound to TFS source control

Created on 7 May 2016  路  3Comments  路  Source: NuGet/Home

https://github.com/NuGet/Home/issues/1164
Reopen this bug, will look into this in 3.5.

2 VS.Client Bug

All 3 comments

repro step:

  1. create a console app, bound it to TFS.
  2. set disableSourceControlIntegration to true in nuget.config
  3. install newtonsoft.json 8.0.1 and upgrade to 8.0.3

Got TFS error: "[file]not be found in your workspace, or you do not have permission to access it"

the bug is during uninstalling packages, nuget will delete package files from TFS, but if user set disableSourceControllntegration to true, package files are not added to TFS workplace during installing, so TFS can't find those files during uninstalling,

The fix is to check disableSourceControlIntegration before deleting package files from TFS.

I fixed the error.
I was simple.
just Check in the latest changes in project , OR get the latest changes and synchronize both tfs and local code.
then you will see every thing is OK.

I encountered this problem today. I have the latest verion of VS2017 with latest updates. This was a difficult one to track down, I had my suspicions about TFS and found this thread which confirmed them. Unbinding from source control worked for me. The fix from Navidsoft above did not work for me. I tried deleting my local copy and refreshing from source control and still the same problem occured. Only unbinding from source control worked for me.

Was this page helpful?
0 / 5 - 0 ratings