Windows Phone 8错误-应用程序安装失败 [英] Windows Phone 8 Error - Installation of the application failed

查看:121
本文介绍了Windows Phone 8错误-应用程序安装失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在研究Windows Phone 8项目,我们正在其中通过HockeyApp将其部署为公司应用程序.我有一个从我们的Symantec证书生成的.PFX文件,并且在设备上安装了正确的.aetx文件.

I am working on a Windows Phone 8 project where we are deploying it as a company app through HockeyApp. I have a .PFX file generated from our Symantec cert and the correct .aetx file installed on the device.

如果我要获取.XAP文件,则打算将其部署并复制到单独的位置,并使用XapDeploy.exe工具对其进行部署进行测试,它将静默安装并正常工作.然后,我使用XapSignTool对.PFX成功地对.XAP签名("XapSignTool成功:成功签名= C:\ xxx").

If I take the .XAP file I intend to deploy and copy it somewhere separate and test it by deploying it using the XapDeploy.exe tool, it will install silently and work properly. Then I use the XapSignTool to sign the .XAP against the .PFX successfully ("XapSignTool Success: Successfully signed = C:\xxx").

当我尝试使用XapDeploy工具测试此最近签署的XAP时,将出现错误错误-应用程序安装失败.发生运行时错误.请修复WMAppManifest.xml文件中的功能."如果使用HockeyApp部署此文件,则安装将在设备上静默失败,并且看起来像是下载后才坐在那里.

When I attempt to test this recently signed XAP with the XapDeploy tool I will get the error "Error - Installation of the application failed. Run time error has occurred. Fix the Capabilities in the WMAppManifest.xml file." If deploy this file with HockeyApp the install will silently fail on the device and appear to just sit there after download.

有人在代码签名后知道是什么原因吗?

Does anybody know what could be causing this after code signing?

推荐答案

我能够解决我的问题.首先,除非您已经在当前运行的模拟器版本上安装了AET文件,否则代码签名的XAP将不会在模拟器中运行.因此,期望XAP签名后不会出现故障对我来说是不对的.

I was able to resolve my issue. First, a codesigned XAP will not run in the emulator unless you have already installed the AET file on that current running version of the emulator. So, it was incorrect for me to to expect not to see a failure after the XAP was signed.

然后,在部署到我的设备时遇到了其他一些问题.通过确保发布者ID GUID与用于Symantec证书的发布者ID相同来解决此问题.

I then encountered some other issues when deploying to my device. This was resolved by making sure that the Publisher ID GUID was the same as the Publisher ID used for the Symantec cert.

此外,与直接使用XapSigningTool相对,我最终使用了PowerShell脚本,该脚本运行MDILXAPCompile并在一个步骤中对XAP进行签名(使构建后步骤易于编写). ps脚本BuildMDILXap.ps1位于\ Program Files(x86)\ Microsoft SDKs \ Windows Phone \ v8.0 \ Tools \ MDILXAPCompile \下,并且显然随SDK一起提供.

Also, as opposed to using the XapSigningTool directly I ended up using the PowerShell script that runs both the MDILXAPCompile and signs the XAP in a single step (making the post-build step easy to write). The ps script BuildMDILXap.ps1 is found under \Program Files (x86)\Microsoft SDKs\Windows Phone\v8.0\Tools\MDILXAPCompile\ and ships with the SDK apparently.

这篇关于Windows Phone 8错误-应用程序安装失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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