I\'ve had this problem before, but then all i needed to do was to clean and rebuild the project. Now that doesnt seem to work anymore. When i start my Asp.Net MVC3 project d
I have fetch same problem for MVC5.
At First Check your System.Web.WebPages assembly from Reference of your project.
For me, I add a reference of version 2.0.0.0. but my web.config file reference it from
<bindingRedirect oldVersion="1.0.0.0-3.0.0.0" newVersion="3.0.0.0" />
and I change it to
<bindingRedirect oldVersion="1.0.0.0-2.0.0.0" newVersion="2.0.0.0" />
it works for me in MVC5.
Please check highlighted section in my attachment for more clearance.