Unable to activate Windows Store app (Visual Studi

2019-02-08 01:26发布

Today I updated my Windows 10 PC to Threshold 2. The update went fine apart from Visual Studio refusing to run any of my Universal Windows 10 projects (including new ones).

When I try run an app I get this message:

Unable to activate Windows Store app '{App}'. The {App name}.exe
process started, but the activation request failed with error 'The app
didn't start'.

I have tried everything:

  • Repairing / Uninstalling then Installing Visual Studio
  • Cleaned the Solution
  • Deleted the 'bin' and 'obj' folders
  • Checked for SDK/Visual Studio updates
  • Checked if there was an app.json (there wasn't)
  • Updated Nuget Packages
  • Tried different projects (including new blank ones - same errors)
  • Resetting Windows (from settings screen)

Extra Info

  • Visual Studio is installed on a second (storage) drive, as my main drive is a small SSD.
  • Everything worked fine before I upgraded.

3条回答
贼婆χ
2楼-- · 2019-02-08 02:03

Turns out that my Visual Studio projects must be on my C:/ drive and not a storage drive. All fixed.

查看更多
姐就是有狂的资本
3楼-- · 2019-02-08 02:08

Since correct answer does not work for me, I found another bad solution: change your package name for debugging purposes.

Important: you should stop debugging via stop button, not via App`s close button.

查看更多
beautiful°
4楼-- · 2019-02-08 02:25

I managed to fix the problem by checking the box "Compile with .NET Native tool chain" under project's "Properties --> Build" -tab. enter image description here

similarly in official troubleshooting page this Native and cleanup tips are mentioned

查看更多
登录 后发表回答