6

ISSUE

Unable to start any UWP app (blank app, UWP samples) in Release/x86.

However, Debug/x86, Debug/x64, Release/x64 are OK.

RELATED

  1. Build -> Configuration Manager
  2. New...
  3. Copy Settings from Debug
  4. Same error

ERROR

Visual Studio Output

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'.

Event Viewer #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.

Event Viewer #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..

Event Viewer #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

New Project -> Visual C# / Blank App (Universal Windows)

ENVIRONMENT

  • Visual Studio 2015 Community Edition Update 1

  • Windows 10 Pro 64bit Version 1511 10586.122

TRIED

I have wasted couple of days on this. Please help.

Messaging and Weather Apps also same error.

Community
  • 1
  • 1
user1083577
  • 71
  • 2
  • 5

2 Answers2

1

To get the C# UWP to run in debug I went to Properties->Build and checked Compile with .NET Native tool chain. This allowed me to debug.

Steno
  • 9
  • 3
  • 2
    That didn't solve the problem for me. Still can't debug, app launches but closes immediately. – Lance Jun 12 '17 at 13:37
  • 2
    I am facing the exact same problem, however it runs if I uncheck "Compile with .NET Native tool chain" – DirtyNative Mar 07 '19 at 09:48
-6

Solution is the following...

  1. Open Weather App
  2. Error will popup, click Store link
  3. Reinstall Weather app (ignore install error)
user1083577
  • 71
  • 2
  • 5