I had a similar problem. I had done a project using Visual Studio 2010
and then got the above error when i compiled it using Visual Studio 2012
. I simple copied all the contents of C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A
into C:\Program Files (x86)\Microsoft SDKs\Windows\v8.0A
and that solved my problem.