I installed a retail version of Windows 8 Pro. I downloaded and installed Visual Studio Express 2012. I asked for and received a developers certificate. Then I tried to create a hello world app.
From there I get a "Unable to Activate Windows Store App" message box when I try to debug the app. Most commentary on the web says delete build directories. This didn't work for me
Does anyone have a solution for how to fix this and debug my app?
For me, the fix was a combination of two of these answers -
I was getting the exact same error. In my case the culprit was a NuGet package. It had added an app.config file to the project and it was confusing VS. I removed the app.config file and it solved my issue.
I got the solution at Iris Classon's site.
This error generally comes when you try to deploy in debug mode.
I would suggest, deploy the app first in release mode and then try in debug mode.
This worked for me.
Because of Two things i resolved this issue.
Basically, we just need to delete the
bin\Debug
andbld\Debug
folders in our projects. Those contents will be regenerated by Visual Studio when you rebuild project.Just Restart the Visual Studio. And Clean Build and Rebuild the solution and RUN it.
Hope this helps.,
This gift was courtesy of Microsoft's automatic updates for VS2015 which was one of the 2 culprits:
KB3022398 KB3165756
It also broke SourceTree and other apps that draw the GUI - making an outline of the app but not drawing the contents.