I had to make some changes to the ASP.NET MVC System.Web.Webpages dll. But when I replace the dll it throws me this error.
The type 'System.Web.WebPages.WebPageBase' is defined in an assembly
that is not referenced. You must add a reference to assembly
'System.Web.WebPages, Version=1.0.0.0, Culture=neutral,
PublicKeyToken=31bf3856ad364e35'.
Best Answer
I had the same problem,
I eventually solved it by following the advice here.
And adding the following to my web.config