问题
无法在Release / x86中启动任何UWP应用程序(空白应用程序,UWP示例)。
但是,Debug / x86,Debug / x64,Release / x64都可以。
相关
错误
Visual Studio输出
Symbols for ntdll.dll could not be downloaded from the Microsoft Symbol Servers. Exception settings and call stacks may not work correctly. Make sure you have a network connection and try again.'App1.exe' (Win32): Loaded 'C:\Windows\SysWOW64\ntdll.dll'. Cannot find or open the PDB file.
The thread 0x2e74 has exited with code -1073741792 (0xc0000020).
The thread 0x780 has exited with code -1073741792 (0xc0000020).
The thread 0x1930 has exited with code -1073741792 (0xc0000020).
The thread 0x1b24 has exited with code -1073741792 (0xc0000020).
The program '[13492] App1.exe' has exited with code -1073741792 (0xc0000020).
Activation of the Windows Store app '451e4789-01f8-4e4e-b28d-fbfa813a4513_v5p8rpnswjrxg!App' failed with error 'The app didn't start'.
事件查看器#1
Activation via contract helper of the app 451e4789-01f8-4e4e-b28d-fbfa813a4513_v5p8rpnswjrxg!App for the Windows.Launch contract failed with Server execution failed.
事件查看器#2
Activation of the app 451e4789-01f8-4e4e-b28d-fbfa813a4513_v5p8rpnswjrxg!App for the Windows.Launch contract failed with error: The app didn't start..
事件查看器#3
ActivateApplicationForContractByAppIdAsUserWithHost of the app 451e4789-01f8-4e4e-b28d-fbfa813a4513_v5p8rpnswjrxg!App for the Windows.Launch contract failed with The app didn't start..
重新发布
新项目 - > Visual C#/空白应用程序(通用Windows)
环境
Visual Studio 2015社区版更新1
Windows 10 Pro 64位版本1511 10586.122
受审
修复Visual Studio
重建,清洁,手动删除bin,obj文件夹
卸载应用
项目位于C:\ Unable to activate Windows Store app (Visual Studio 2015, Windows 10 Version 1511)
没有'app.config'文件
sfc / scannow
我浪费了几天时间。请帮忙。
Messaging and Weather Apps也有同样的错误。
答案 0 :(得分:1)
要使C#UWP在调试中运行,我转到了Properties-> Build并检查了使用.NET Native工具链进行编译。这让我可以调试。
答案 1 :(得分:-5)
解决方案如下......