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 was facing the same issue even after using /P:VisualStudioVersion=11.0 as well as ignore managedruntime version in the proj file.
/P:VisualStudioVersion=11.0
Run the command
C:\Windows\System32\inetsrv>appcmd set apppool /apppool.name: DefaultAppPool /managedRuntimeVersion:v4.5
After this, reset the ISS.