6

问题

无法在 Release/x86 中启动任何 UWP 应用(空白应用、UWP 示例)。

但是,Debug/x86、Debug/x64、Release/x64 都可以。

有关的

  1. 构建 -> 配置管理器
  2. 新的...
  3. 从调试复制设置
  4. 同样的错误

错误

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 专业版 64 位版本 1511 10586.122

尝试过

我在这上面浪费了几天时间。请帮忙。

消息和天气应用程序也同样的错误。

4

2 回答 2

1

为了让 C# UWP 在调试中运行,我转到 Properties->Build 并检查了 Compile with .NET Native tool chain。这让我可以调试。

于 2017-04-18T15:21:42.540 回答
-6

解决方法如下...

  1. 打开天气应用
  2. 会弹出错误,点击商店链接
  3. 重新安装天气应用程序(忽略安装错误)
于 2016-03-12T07:38:41.323 回答