Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 #2739

Closed
zhili1208 opened this issue May 6, 2016 · 3 comments
Assignees
Labels
Priority:2 Issues for the current backlog. Product:VS.Client Type:Bug
Milestone

Comments

@zhili1208
Copy link
Contributor

#1164
Reopen this bug, will look into this in 3.5.

@zhili1208 zhili1208 self-assigned this May 6, 2016
@zhili1208 zhili1208 added this to the 3.5 RC milestone May 6, 2016
@zhili1208 zhili1208 changed the title Install package fails when solution/project is bound to TFS source control "[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 May 9, 2016
@zhili1208 zhili1208 changed the title "[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 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 May 9, 2016
@zhili1208
Copy link
Contributor Author

zhili1208 commented May 9, 2016

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.

zhili1208 added a commit to NuGet/NuGet.Client that referenced this issue May 9, 2016
@rrelyea rrelyea added Type:Bug Product:VS.Client Priority:2 Issues for the current backlog. labels May 9, 2016
@zhili1208 zhili1208 modified the milestones: 3.5 Beta2, 3.6 Beta Jun 22, 2016
@Navidsoft
Copy link

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.

@hammy33897
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Priority:2 Issues for the current backlog. Product:VS.Client Type:Bug
Projects
None yet
Development

No branches or pull requests

4 participants