Visual Studio error on deploy DEP0500
-
14. března 2012 10:58
Hello,
I got this error every time I try to relaunch my application in debug mode :
Error : DEP0500 : The folder "C:\Users\[...]\Metro Style Client\Dev\Base\Sources\Metro.Client\bin\Debug\AppX" could not be deleted.
Access to the path 'C:\Users\[...]\Metro Style Client\Dev\Base\Sources\Metro.Client\bin\Debug\AppX\Controls' is denied. Metro.Client
When I start VS, the first run works fine, but all the next runs will throw this error.
I have to close and restart VS to re-debug my app...I first had problem when the sources were stored in a folder in c:\, then I moved them to my personnal folder. It worked fine, but since yesterday the problem occurs again... without changing anything, it just occurs now again...
When I try to delete the Appx\Controls I receive a "access denied" message, I can't even see the properties of this folder. I'm not the owner of the folder and can't do anything on it.
for infos : I'm using a domain logon, my user is administrator of the local machine.
- Přesunutý Rob CaplanMicrosoft Employee, Moderator 15. března 2012 0:33 (From:Building Metro style apps with C# or VB )
Všechny reakce
-
15. března 2012 8:05Moderátor
Hi Julien,
If we create a new project and put it on another driver, does problem happen?
If you launch the app from debugger, did it terminated? Once this issue happen, we may use the process monitor or task manager to check if the last process is terminated.
If you lanuch the VS using "Run as administrator", does it work. It can check if the UAC block the debugger for some specific position.
If you applied some Anti-virus software on your machines, temprory turn it off, sometimes, these kind of software will block the file.
Hope the suggestion helps.
Yi
Yi Feng Li [MSFT]
MSDN Community Support | Feedback to us
-
28. dubna 2012 10:06
I have the same error here ... Any idea to solve it ?
Jonathan ANTOINE - Découvrez mon livre sur MVVM: http://goo.gl/N6Tmn - http://www.jonathanantoine.com
-
28. dubna 2012 11:34
Ok, I think I found out an answer :
- Delete the sln files,
- Open the main project
- Re add the other projects
- Enjoy !
Jonathan ANTOINE - Découvrez mon livre sur MVVM: http://goo.gl/N6Tmn - http://www.jonathanantoine.com
-
1. května 2012 12:45From project properties, under debug tab Uncheck "Always Re-install my package" should solve this
yanal
-
5. května 2012 23:23
Download SysInternals Process Explorer and then search for the path that DEP0500 is complaining about.
Click Find...Handle or DLL...
Type in something like 'bin\Debug\AppX'
I find devenv.exe with open file handles to files/folders in bin\Debug\AppX. They should show up both in the Search dialog and in the Lower Pane in Process Explorer.
Select the File handle(s) and right-click and select Close Handle.
This works for me. Seems VS is leaving some handles open.
-
21. února 2013 14:49
Reset your VS settings.
Blog: http://socialebola.wordpress.com