I just updated my project to MVC 5.1 from MVC 5. The main web.config file got updated automatically, but web.configs under main View and Areas folders weren\'t
web.config
Update NuGet Packages in Package Manager Console.
Verify the current version of System.web.MVC and update it in the Views/Web.config file and also verify the version in Web.config of Root folder.