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

前端 未结 11 1030
无人及你
无人及你 2021-02-12 13:25

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:20

    If you are being denied access to any specific folder, then it is being used by some other application.Check if any other application is using that path to reference that folder of any file in that folder. In my case , my application was reference a file inside the bin folder. So every time i publish and delete the old one. error will be thrown that bin folder can not be deleted. access denied. i went in my application. checked in the refrenced path of each dll, removed the ones which referenced the publish path and BOOM Issue solved.

提交回复
热议问题