I have recently upgraded to VS 2012, I had to as I needed to start using the .net 4.5 but that is besides the point. My problem is the following:
I have a Resource
Resource
Also you can check for styles with the same x:key in AppStyles.xaml. It caused me a similar error.
x:key