无法访问visual studio中新创建的项目

jjc*_*jcm 14 c# windows microsoft-metro visual-studio-2012 windows-store-apps

我正在visual studio中创建一个新的Windows应用商店应用.我似乎无法运行我创建的任何应用程序.即使是新创建的空白应用程序也会给我错误

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
Run Code Online (Sandbox Code Playgroud)

有任何想法吗?我已经检查了AppxManifest.xml文件的权限,我可以完全控制它.我也尝试在提升的权限下运行visual studio,它仍然会出现相同的错误.

编辑:Blend似乎与visual studio有相同的问题,这里是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)
Run Code Online (Sandbox Code Playgroud)

Jan*_*ník 18

将SYSTEM帐户的完全权限授予包含源代码的文件夹.

  • 如果您发布的是您已将应用程序文件夹移动到Google驱动器或Dropbox的位置并且它无法正常工作,那么您需要在完全权限的情况下授予对该文件夹的"SYSTEM"访问权限.这花费了我几个小时的生命,所以感谢Jan的解决方案. (4认同)

Isr*_*pez 5

如果在Windows上使用subst命令将文件夹路径映射到驱动器号,也会发生此错误.


Ekk*_*Ekk 0

检查您的文件夹 ( C:\Users\Jacob\Documents\Visual Studio 2012\Projects\App1\App1\bin\Debug\AppX\AppxManifest.xml ) 安全性,并确保您具有对该文件夹的完全控制访问权限。

第二个选项是将其移动到另一个驱动器,例如D:\New Folder