部署到商店后 UWP 部署错误 - Windows 10 [英] UWP Deployment Error after deploying to store - Windows 10

查看:33
本文介绍了部署到商店后 UWP 部署错误 - Windows 10的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

自从在商店(测试版和私有版)中部署适用于 Windows 10 的 UWP 应用程序后,我无法再将其部署到我的手机 (ARM)、平板电脑模拟器 (x86) 和我的本地机器 (Surface Pro 3) 进行测试.

Since deploying my UWP app for windows 10 in the store (beta & private), I can no longer deploy it to my phone (ARM), Tablet Simulator (x86) and my local machine (Surface Pro 3) for testing.

我已经重新启动了我的手机和我的 SP3,但我仍然遇到同样的错误:

I've rebooted both my phone and my SP3 but I'm still getting the same error:

Severity    Code    Description Project File    Line    Suppression State
Error       Error : DEP0001 : Unexpected Error: Install failed.
Please contact your software vendor. (Exception from HRESULT: 0x80073CF9)   

我在谷歌上搜索了错误并找到了这篇文章:

I've googled the error and found this article:

https://msdn.microsoft.com/en-us/library/windows/desktop/hh973484(v=vs.85).aspx

根据这篇文章/页面,我应该检查 AppXDeployment-Server 日志

According to this article/page, I should check the AppXDeployment-Server log

ERROR_INSTALL_FAILED 0x80073CF9 
Package install failed. Contact the software vendor.

Check the AppXDeployment-Server event log for more info.

我做了,但我没有发现任何有用的东西.我刚刚尝试重新部署到我的手机,但没有添加任何条目.此日志中的最后一个条目来自 52 分钟之前.我还检查了 AppXDeployment 日志,但也没有!

I did, but I didn't find anything useful. I've just tried to re-deploy to my phone and no entries were added. The last entry in this log was from 52 minutes prior to now. I've also checked the AppXDeployment log and nothing either!

会不会和visual studio生成了新证书有关?我不确定是否诚实.

Could it be related to visual studio having generated a new certificate? I'm not sure to be honest.

当我尝试在模拟器或本地机器上部署它时,出现不同的错误:

When I try to deploy it on the Simulator or the Local Machine, I get a different error:

Severity    Code    Description Project File    Line    Suppression State
Error       Error : DEP0700 : Registration of the app failed. An
internal error occurred with error 0x80073D05. See
http://go.microsoft.com/fwlink/?LinkId=235160 for help diagnosing app
deployment issues. (0x80073cf6)         

我在找到这篇文章后设法解决了这个问题:

I managed to resolve this issue after finding this article:

错误:DEP0700:应用程序注册失败.发生内部错误

它现在又可以在我的本地机器上运行了我的模拟器,但我以前从未这样做过.

And it's now working again on my Local Machine & my Simulator but I've never had to do this before until now.

我认为上述内容可能与我尝试修复 VS 2015 的事实有关,并且当我注意到我的目标版本和最小版本由 10586 更改为 10240.

I think the above might related to the fact that I try to repair my VS 2015 and it messed things up as I noticed that my Target Version & Min Version were changed from 10586 to 10240.

我决定为 10586 和 26624 重新安装 Windows 软件开发工具包,但问题仍然存在.我仍然无法直接在我的设备 (ARM) 上部署.

I decided to re-install the Windows Software Development Kit for both 10586 and 26624 but the problem remains. I still can't deploy directly on my device (ARM).

非常感谢任何帮助,我最不想做的就是擦拭我的机器!

Any help would be greatly appreciated and the last thing I want to do is having to wipe my machine!

谢谢.

蒂埃里

更新-1:

我刚刚创建了一个新的空白 UWP,这仍然有效,这会让您相信问题不在于机器、Visual Studio 或我手机上的文件.从表面上看,我的 UWP 项目出了点问题,但是什么???

I've just created a new blank UWP and this still works which would lead you to believe that the problem is not with the files on the machine, visual studio or my phone. By the looks of it, something is messed up in my UWP project but what???

我还注意到我所有的 10240 模拟器都不见了,不是我需要它们,但我想我还是会提到它.

I've also noticed that all my emulators for 10240 are all missing, not that I need them but I thought I'd mention it anyway.

更新-2:

这是输出日志,以防万一:

Here is the output log, in case it helps:

1>------ Build started: Project: MyApp, Configuration: Debug ARM ------
1>  MyApp -> C:\Windows Universal\MyApp\MyApp\bin\ARM\Debug\MyApp.exe
1>  Starting .NET Native compilation
1>  Processing application code
1>C:\Windows Universal\MyApp\MyApp\Resources.System.Linq.Expressions.rd.
  xml(35): warning : Method 'CreateLambda' 
  within 'System.Linq.Expressions.Expression' could not be found.
1>C:\Windows Universal\MyApp\MyApp\Resources.System.Linq.Expressions.rd.
  xml(91): warning : Method 'ParameterIsAssignable'
  within 'System.Linq.Expressions.Expression' could not be found.
1>  Computing application closure and generating interop code
1>  Generating serialization code
1>  Compiling interop code
1>  Cleaning up unreferenced code
1>  Generating native code
1>  Generating fixups for native code
2>------ Deploy started: Project: MyApp, Configuration: Debug ARM ------
2>Deploying to Phone Internal Storage...
2>Updating the layout...
2>Copying files: Total 11 mb to layout...
2>Checking whether required frameworks are installed...
2>Registering the application to run from layout...
2>Error : DEP0001 : Unexpected Error: Install failed. Please contact 
  your software vendor. (Exception from HRESULT: 0x80073CF9)

我已经比较了新应用程序(有效)和我的实际应用程序的解决方案和项目文件,但没有看到任何重要的内容.有差异,但将它们一一去除时,结果并没有什么不同.

I've compared both the solution and project files for the new app (which works) and my actual app and can't see anything critical. There were differences, but when removing them one by one, it made no difference in the outcome.

我现在通过 IDE 做同样的事情,只是发现 Compile with the .NET Navite Tool Chain 在我的新应用程序中打勾,而不是在我的实际应用程序中.我现在选择了它,但仍然没有运气.唯一的区别是在抛出报告的错误之前似乎需要更长的时间来部署.

I'm doing the same now via the IDE and just spotted that the Compile with the .NET Navite Tool Chain was ticked in my new app and wasn't in my actual app. I've selected it now, but still no luck. The only difference is that it's seems to be taking much longer to deploy before throwing the reported error.

更新-3:

请注意,使用 .NET Native Tool Chain 编译"是因为一个项目处于发布模式,而另一个项目处于调试模式,但对问题没有影响.

Note that the "Compile with the .NET Native Tool Chain" was because one project as in Release mode while the other one was in Debug mode but it had no effect on the issue.

我尝试将证书重置为临时证书,但同样没有改变!

I tried resetting the certificate to be set to the temporary one, but again, no change!

项目属性中的选项之间没有区别.我确实找到了解决方案,真是浪费我的时间!!我将在稍后发布它作为答案,但它可能是众多答案之一!

There was no differences between the options in the Project Properties. I did find a solution and what a waste of my time!! I'll post it in a second as the answer but it could be one of many!

推荐答案

为了解决这个问题,等待它......,我所要做的就是删除我的应用程序上安装的旧实例电话.

In order to resolve this problem, wait for it...., all I had to do was remove the old instance of my app that was installed on my phone.

如前所述,在我的更新中,我不敢相信这是我所有问题的根源!多么糟糕的错误.我仍然不明白为什么这会解决它,因为您会认为它会像过去多次那样更新应用程序.

As mentioned, in my update, I cannot believe this was the root of all my problems! What a poor error. I still don't understand why this resolved it as you would assume it would have updated the app as it did many times in the past.

我曾想在较早的阶段删除它,但我不愿意这样做,因为我不确定在这个问题解决之前我是否能够重新安装它并且我每天都使用该应用程序,但是用完选项后,我决定这样做,第二次这样做时,它立即安装了新版本,我也可以直接通过 IDE 进行调试.

I had thought about removing it at an earlier stage but I was reluctant doing so as I wasn't sure I would be able to re-install it until this problem was solved and I use the app on a daily basis, but having ran out of options, I decided to do so and the second I did, it installed the new version immediately and I was able to debug directly via the IDE as well.

多么痛苦,多么浪费时间,但是嘿,问题解决了,这是最重要的!

What a pain and what a waste of time but hey, problem is solved which is the main thing!

希望这能帮助其他面临同样问题的人.

Hope this helps others facing the same problem.

这篇关于部署到商店后 UWP 部署错误 - Windows 10的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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