14

I'm creating a new Windows Store app in visual studio. I can't seem to run any app I create though. Even a newly created, blank app gives me the error

Error : DEP0700 : Registration of the app failed. error 0x80070005: Opening file from location: C:\Users\Jacob\Documents\Visual Studio 2012\Projects\App1\App1\bin\Debug\AppX\AppxManifest.xml failed with error: Access is denied.
. (0x80070005)  App1

Any ideas? I've checked the permissions of the AppxManifest.xml file and I have full control over it. I've also tried running visual studio under elevated permissions, and it still presents the same error.

Edit: Blend seems to have the same issues as visual studio, here's the output from blend:

Application installation failed.
Registering the application to run from layout...
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v11.0\AppxPackage\Microsoft.AppXPackage.Targets(1722,9): error : DEP0700: Registration of the app failed. error 0x80070005: Opening file from location: C:\Users\Jacob\Documents\Visual Studio 2012\Projects\booktest\booktest\bin\Debug\AppX\AppxManifest.xml failed with error: Access is denied.
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v11.0\AppxPackage\Microsoft.AppXPackage.Targets(1722,9): error : . (0x80070005)
jjcm
  • 3,677
  • 3
  • 17
  • 14

4 Answers4

18

Give full rights to the SYSTEM account to the folder with your source code.

Jan Zahradník
  • 2,417
  • 2
  • 33
  • 44
  • 1
    This solution worked for me. My new (blank) project folder was nested in a development folder for all projects. So as a result of NTFS permission inheritance, this project folder was inheriting permissions from the parent dev folder which in turn only allowed my personal user account access. So add system, give it full rights and I can now deploy. Whether or not this means the intelligence agencies of foreign governments can now steal my precious work, I dunno, but I'll worry about that when the time comes.... this is after all a "Hello World" app. – rism Apr 25 '13 at 01:12
  • 4
    If you issue is where you have moved your app folder to maybe a Google drive or Dropbox and it wont work, then yes you need to give "SYSTEM" access to that folder with full permission. This cost me hours of my life so thanks Jan for the solution. – timv Mar 26 '14 at 00:44
  • you were right, in my case the folder was encrypted and so the SYSTEM account could not access it. the decryption of the folder worked – user287107 May 01 '15 at 10:51
5

This error also occurs if you use the subst command on Windows to map a folder path to a drive letter.

Israel Lopez
  • 1,135
  • 3
  • 11
  • 25
  • 1
    That was my issue. Any particular reason why it happen? – xurc Jan 16 '17 at 18:33
  • 1
    It usually has to do with how VS is launched, and whether it has the same security context as the user that created the subst drive letter. Beyond that, we stopped using subst and instead just had a Local directory C:\Local\ for common paths. – Israel Lopez May 22 '17 at 23:23
1

My issue was that the solution folder was encrypted. I work at a place where encryption in certain folder locations is a default. I had to move the folder to a new location where the default did not exist. I then went to the solution folder, right clicked on the folder and selected -> properties -> Advanced. At the bottom is a checkbox that says "Encrypt contents to secure data". Uncheck that and say yes to all subfolders.

enter image description here

Eric
  • 389
  • 5
  • 8
0

Check your folder (C:\Users\Jacob\Documents\Visual Studio 2012\Projects\App1\App1\bin\Debug\AppX\AppxManifest.xml) security and make sure that you have full control access to that folder.

The second option is to move it to another drive, for example, D:\New Folder.

Ekk
  • 5,627
  • 19
  • 27
  • Both the parent folder and the manifest have full control: http://i.imgur.com/1sexd.png – jjcm Oct 17 '12 at 08:52
  • Could you try to move it to another drive, for example, D:\New Folder? – Ekk Oct 17 '12 at 09:01
  • Moving it to a new drive seemed to work! I'd still enjoy knowing why it doesn't work on my main drive, but at least I can work in the meantime. – jjcm Oct 17 '12 at 16:32
  • I just update the moving folder to the answer. Glad it works on yours! – Ekk Oct 17 '12 at 23:46
  • Issues - it can run now, but it seems that opening the designer view in both Visual Studio and Blend still give UnauthorizedAccessExceptions. Still some permission issues it seems. – jjcm Oct 18 '12 at 04:35