I have installed vs2012 (11.0.50727.1), I opened a new MVC4 with .NET 4.5 solution, i create a simple HomeControl
vs2012 (11.0.50727.1)
MVC4 with .NET 4.5
HomeControl
The same error appears when you switch you project from MVC3 to MVC4 and forget to change System.Web.WebPages.Razor, Version=1.0.0.0 to System.Web.WebPages.Razor, Version=2.0.0.0 in the web.config.
System.Web.WebPages.Razor, Version=1.0.0.0
System.Web.WebPages.Razor, Version=2.0.0.0