【发布时间】:2016-05-01 08:22:43
【问题描述】:
由于在商店中部署了适用于 Windows 10 的 UWP 应用程序(测试版和私有版),我无法再将其部署到我的手机 (ARM)、平板电脑模拟器 (x86) 和我的本地机器 (Surface Pro 3) 上进行测试。
我已经重新启动了我的手机和我的 SP3,但我仍然收到同样的错误:
Severity Code Description Project File Line Suppression State
Error Error : DEP0001 : Unexpected Error: Install failed.
Please contact your software vendor. (Exception from HRESULT: 0x80073CF9)
我搜索了错误并找到了这篇文章:
https://msdn.microsoft.com/en-us/library/windows/desktop/hh973484(v=vs.85).aspx
根据这篇文章/页面,我应该检查 AppXDeployment-Server 日志
ERROR_INSTALL_FAILED 0x80073CF9
Package install failed. Contact the software vendor.
Check the AppXDeployment-Server event log for more info.
我做了,但我没有发现任何有用的东西。我刚刚尝试重新部署到我的手机,但没有添加任何条目。此日志中的最后一个条目是从现在之前的 52 分钟开始的。我还检查了 AppXDeployment 日志,也没有!
这可能与 Visual Studio 生成了新证书有关吗?我不确定是否诚实。
当我尝试在模拟器或本地机器上部署它时,我得到一个不同的错误:
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)
找到这篇文章后,我设法解决了这个问题:
Error: DEP0700: Registration of the app failed. An internal error occurred
它现在可以在我的本地机器和模拟器上再次运行,但我以前从未这样做过。
我认为上述情况可能与我尝试修复我的 VS 2015 并搞砸了,因为我注意到我的目标版本和最低版本已从 10586 更改为 10240。
我决定为 10586 和 26624 重新安装 Windows 软件开发工具包,但问题仍然存在。我仍然无法直接在我的设备 (ARM) 上进行部署。
任何帮助将不胜感激,我最不想做的就是擦拭我的机器!
谢谢。
蒂埃里
UPDATE-1:
我刚刚创建了一个新的空白 UWP,它仍然有效,这会让您相信问题不在于机器、Visual Studio 或我的手机上的文件。从表面上看,我的 UWP 项目出了点问题,但是什么???
我还注意到我所有的 10240 模拟器都不见了,不是我需要它们,但我想我还是会提到它。
UPDATE-2:
这是输出日志,以防有帮助:
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)
我已经比较了新应用程序(有效)和我的实际应用程序的解决方案和项目文件,但看不到任何重要内容。有区别,但是一一去掉,结果就没什么区别了。
我现在通过 IDE 做同样的事情,只是发现 Compile with the .NET Navite Tool Chain 在我的新应用程序中打勾,而不是在我的实际应用程序中。我现在选择了它,但仍然没有运气。唯一的区别是,在抛出报告的错误之前,部署似乎需要更长的时间。
UPDATE-3:
请注意,“使用 .NET Native Tool Chain 编译”是因为一个项目处于发布模式,而另一个项目处于调试模式,但对问题没有影响。
我尝试将证书重置为临时证书,但同样没有任何变化!
项目属性中的选项之间没有区别。我确实找到了解决方案,真是浪费我的时间!!我会在一秒钟内发布它作为答案,但它可能是其中之一!
【问题讨论】:
标签: win-universal-app uwp windows-10-universal