We are using Teamcity to do continuous integration builds for our website and have just upgraded our website to .Net 4.5RC. The application builds and runs in IIS express o
I had a similar problem. I was building my application by calling MSBuild, and I found that when I tried to web-deploy the application I got that error. I fixed it by telling MSBuild to build with VS2012, by adding a commandline switch to the MSBuild command:
/P:VisualStudioVersion=11.0
Tip o' the hat to this question.