Could not load file or assembly 'System.Web.WebPages.Razor, Version=2.0.0.0,
问题 I use ASP.NET MVC3 .NET4 Framework. My project is working on local but I send files to server and is doesn't work there. In my server file is v2 now. If i send v2 file to server i get Could not load file or assembly 'System.Web.WebPages.Razor, Version=1.0.0.0,... error 回答1: In ASP.NET MVC 4, the namespace is not System.Web.WebPages.Razor, but System.Web.Razor That worked for me, change your web.config. still not resolved then Verified that .csproj file contains for ALL referenced assemblies,