Unable to activate Windows Store app (Visual Studio 2015, Windows 10 Version 1511)

折月煮酒 提交于 2019-11-29 17:09:38

问题


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.

回答1:


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

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




回答2:


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




回答3:


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.



来源:https://stackoverflow.com/questions/33704916/unable-to-activate-windows-store-app-visual-studio-2015-windows-10-version-151

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!