title: The view '~/Views/Login/Login.aspx' must derive from ViewPage, ViewPage<TModel>, ViewUserControl or ViewUserControl<TModel>
body: <p>So I am getting this error on ASP.NET mvc2 solutions that used to work fine. I had to install Visual Studio 2012 and was running low on disk space, so had to manually uninstall some Visual Studio 2010 functionalities which didn't seem to be completely necessary at the moment. Now whenever I try to debug an application which targets the 4.0 .NET framework I get this error. I tried re-installing Visual Studio and the .net framework, but it keeps kappening. I don't know what to do.</p>
  
  <p>Also, i tried what's stated in this question (<a href="https://stackoverflow.com/questions/2467808/getting-the-error-the-view-at-views-page-home-aspx-must-derive-from-viewpag">Getting the error &quot;The view at &#39;~/Views/Page/home.aspx&#39; must derive from ViewPage, ViewPage&lt;TViewData&gt;, ViewUserControl, or ViewUserControl&lt;TViewData&gt;&quot;</a>) but couldn't put the answer marked as correct to work. Please help!</p>