Win8:在布局文件夹中注册应用程序...失败 [英] Win8: Registration of the app in the layout folder ... failed

查看:60
本文介绍了Win8:在布局文件夹中注册应用程序...失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

菜鸟警告.我真的是Windows开发工具的新手.

Noob warning. I'm really new to Windows dev tools.

我已经安装了最新的Win8 RC,并且还安装了VS 2012 RC.现在,我试图创建一个Metro风格的应用程序(C#),但是从VS执行测试时遇到了问题.错误消息是:

I've got the latest Win8 RC installed, and got VS 2012 RC for it as well. Now I'm trying to create a Metro-style application (C#), but running into problems when executing tests from VS. The error message is:

Error : DEP0700 : Registration of the app in the layout folder "C:\<FOLDER>" failed. 

error 0x80070005: Failed to set access rights to \\?\C:\<FOLDER>

Failed to activate Metro style unit test executor. Error : The parameter is incorrect.

如果尝试使用 vsttest.console.exe 从命令行运行单元测试,则最初由于不可信的根证书而失败.补救措施是使用Certutil添加生成的.cer文件,然后在命令提示符下运行单元测试按预期工作.

If trying to run the unit tests from the command line using vsttest.console.exe, initially it failed because of an untrusted root certificate. The remedy was to add the generated .cer-file using Certutil, and after that running unit tests from the command prompt worked as expected.

但是,Visual Studio仍然拒绝使用相同的错误消息运行测试.路径中的* \?* 看起来无效,但是我对VS的经验不足,无法知道它是否正常.我还尝试了在此处找到的说明此处,但没有任何用处.

However, Visual Studio still refuses to run the tests with the same error message. The *\?* in the path looks like invalid, but I don't have enough experience with VS to know whether it's normal or not. I also tried the instructions found here and here, but without any use.

运行

Get-WinEvent -logname Microsoft-Windows-Appx* |Select-Object -first 10|Out-GridView

说上次成功达到的状态是PrerequiesitesCheced",否则给了我与上述相同的无法设置访问权限"错误.

says that "The last successful state reached was PrerequiesitesCheced", but otherwise gives me more or less the same "Failed to set access rights" error as above.

更多背景信息:

  • 这是一个共享的(通过vcs)项目,并且可以在其他开发人员计算机上正常运行
  • 签名证书不是我的",但是由于它是从cmd运行的,因此我认为它不是根本原因
  • 测试是使用Visual Studios单元测试框架编写的,例如NUnit在Metro应用程序上似乎工作得不太好.
  • 目录中的权限应该很好,我检查了所有文件和目录是否归我所有,并且具有读/写访问权限
  • 笔记本电脑上还有另一个用户,他使用了VS,但是未共享项目,并且此后已重新生成应用程序和签名ID.我还从搜索中删除了用户名,以寻求解决问题的方法.
  • It's a shared (over vcs) project, and it runs fine on the other devs machine
  • The signing certificate is not "mine", but since it runs from cmd I assume it could not be the root cause
  • Tests are written using Visual Studios unit test framework, as e.g. NUnit didn't seem to work too well with Metro apps.
  • The permissions in the directory should be fine, I checked that all files and dirs are owned by me, and have read/write access
  • There has been another user on the laptop, and he's used VS, but the projects are not shared, and Application and signing IDs have been regenerated since. I also removed the username in my search for a solution for the problem.

有人遇到过类似的情况,并且设法以某种方式解决了吗?任何帮助将不胜感激.

Has anyone got a similar situation, and managed to fix it somehow? Any help would be greatly appreciated.

推荐答案

我们从未设法找出原因,为了节省时间,我最终擦除了整个环境,最后重新安装了Windows.我为此使用了专用计算机,MS使安装过程变得非常容易,所以这没什么大不了的.我猜预发行版有问题,因为我再也没有遇到过类似的问题,而且我的团队也没有其他人.

We never managed to figure out a reason for this, and in order to save time I finally wiped the whole environment, and ended up re-installing windows. I'm using a dedicated machine for this, and MS has made the installation process very easy, so this was not a big deal. Problems with the pre-release I guess, because I haven't encountered a similar problem anymore, and neither has anyone else on my team.

这篇关于Win8:在布局文件夹中注册应用程序...失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆