Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error : DEP0500 : The folder "...\Debug\AppX" could not be deleted. Access to the path 'resources.pri' is denied

I get this error a lot, when I try to debug my WinRT app on my local machine:

Error : DEP0500 : The folder "C:\Users\akku\VS2012Projects\ProjectName\bin\x86\Debug\AppX" could not be deleted. 
Access to the path 'resources.pri' is denied.

The only thing that fixes it is restarting Windows 8. Googled around a bit and wondered that there was no solution to be found.

After some more testing I realized that this only happens when running or debugging the solution. The problem always seems to be that the AppX folder of the previous run could not be deleted. Maybe the debugger or the Visual Studio process that executed the last application run doesn't stop accessing some resources here?

A quick hack I just used is to create a second Release and Debug-Configuration from the configuration manager. When the problem arises I can switch to another configuration, and the problem is solved temporarily. I still would like a real working answer on how to circumvent this problem with a proper solution.

Has anyone experienced this and found a better fix?

like image 996
Akku Avatar asked Nov 22 '12 10:11

Akku


1 Answers

The issue is that I'm working on a Mac with Parallels Desktop and a virtualized Windows 8. As Ryan Joy pointed out in the comment under my question, a workaround can be found on the Parallels Forums.

"The .pri files are being locked because of the feature that shares guest applications with the host OS. As a workaround, I disabled the app sharing feature. I suggest you try this."

like image 147
Akku Avatar answered Sep 20 '22 13:09

Akku