Out of nowhere my ASP.NET MVC 4 solution gives me this error:
Inheritance security rules violated by type: \'System.Web.WebPages.Razor.WebPageRazorHos
From my friend Claudio Redi's comment the solusion of this problem is:
Try removing the System.Web.Razor assembly binding in the web.config if present. http://forums.asp.net/t/1968686.aspx?Installed+Nuget+package+Razor+Engine+whole+system+stops