[RESOLVED]ASP.NET MVC 4 Could not load file or assembly 'System.Web.WebPages.Razor, Version=,

I have an asp.net mvc 4 project working on VS2010, it was working fine yesterday but I uninstalled VS2012 and the project has now stopped working, it throws the following exception message:

System.IO.FileNotFoundException: Could not load file or assembly ‘System.Web.WebPages.Razor, Version=, Culture=neutral, PublicKeyToken=31bf3856ad364e35′ or one of its dependencies. The system cannot find the file specified.

I have checked and this is not referenced anywhere in the project, the project uses SignalR, maybe this is a requirement for it? I have checked the related questions in the site but still cannot make it work

Pleaselook into the solution acceptedin the below link. This would surely help you.




Leave a Reply