Warning: count(): Parameter must be an array or an object that implements Countable in /customers/a/f/c/fjorden.se/httpd.www/joel/scripts/sb_display.php on line 480 Blog by Joel Fjordén a.k.a. Will o Wisp
Unable to activate Windows Metro style application 
Monday, June 11, 2012, 09:17 PM - WinRT
Frustrated about getting this error message when trying to run/debug a Metro style application that worked just a few minutes ago? Well, some blog and forum posts suggest removing the bin and obj folders, but this did not work for me. I finally found out though, that the problem in my case was related to the prerelease NuGet package "MEF for web and Metro style apps".

The problem seems to be with the assembly bindings added to the app.config file. Removing the file completely solves the problem however! You will get compiler warnings of conflicting assembly versions, but at least it works! Until a better solution presents itself...
2 comments ( 177 views )   |  related link