ISSUE
无法在Release / x86中启动任何UWP应用程序(空白应用程序,UWP示例) .
但是,Debug / x86,Debug / x64,Release / x64都可以 .
RELATED
-
Build - > Configuration Manager
-
新......
-
从Debug复制设置
-
同样的错误
ERROR
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..
TO REPRODUCE
新项目 - > Visual C#/空白应用程序(通用Windows)
ENVIRONMENT
-
Visual Studio 2015社区版更新1
-
Windows 10 Pro 64位版本1511 10586.122
TRIED
-
修复Visual Studio
-
Unable to activate windows store app the app didn't start中的一切
-
重建,清理,手动删除bin,obj文件夹
-
卸载应用
-
项目位于C:\ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
-
没有'app.config'文件
-
sfc / scannow
我浪费了几天时间 . 请帮忙 .
消息和天气应用程序也是同样的错误 .
2 回答
为了让C#UWP在调试中运行,我转到了Properties-> Build并检查了使用.NET Native工具链进行编译 . 这让我可以调试 .
解决方案如下......
开放天气应用程序
将弹出错误,单击存储链接
重新安装天气应用程序(忽略安装错误)