Visual Studio Publish Failed: “Unable to delete file … Access to the path … is denied.”

前端 未结 11 1238
生来不讨喜
生来不讨喜 2021-02-12 13:43

I\'ve recently switched from a Windows XP machine to Windows 7. I use Subversion and TortoiseSVN.

I cannot publish my .NET application in Visual Studio. I get over a tho

11条回答
  •  灰色年华
    2021-02-12 14:18

    The most likely cause is a permissions issue. The path in question may have been created while you were running with elevated permissions and hence requires admin permissions to delete. Try running Visual Studio as an admin and see if the problem goes away.

    If so then the best solution is to do the following

    1. Save the changes to that directory (check in if necessary)
    2. Delete the repository
    3. Re-check out the repository and ensure you are not running as an admin when doing so

提交回复
热议问题