视图“〜/ Views / Login / Login.aspx”必须从ViewPage,ViewPage< TModel>,ViewUserControl或ViewUserControl< TModel>派生。 [英] The view '~/Views/Login/Login.aspx' must derive from ViewPage, ViewPage<TModel>, ViewUserControl or ViewUserControl<TModel>

查看:77
本文介绍了视图“〜/ Views / Login / Login.aspx”必须从ViewPage,ViewPage< TModel>,ViewUserControl或ViewUserControl< TModel>派生。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以我在以前运行良好的ASP.NET mvc2解决方案上遇到此错误。我必须安装Visual Studio 2012,并且磁盘空间不足,因此必须手动卸载某些Visual Studio 2010功能,这些功能目前似乎并不是完全必要的。现在,每当我尝试调试针对4.0 .NET框架的应用程序时,都会出现此错误。我尝试重新安装Visual Studio和.net框架,但这种情况一直在发生。我不知道该怎么办。

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.

此外,我尝试了此问题中提到的内容(获取错误必须在〜/ Views / Page / home.aspx中查看从ViewPage,ViewPage< TViewData>,ViewUserControl或ViewUserControl< TViewData>" 派生),但无法将标记为正确的答案有效。请帮忙!

Also, i tried what's stated in this question (Getting the error "The view at '~/Views/Page/home.aspx' must derive from ViewPage, ViewPage<TViewData>, ViewUserControl, or ViewUserControl<TViewData>") but couldn't put the answer marked as correct to work. Please help!

推荐答案

如果.NET Framework 4.0的安装发生问题,似乎可能会出现此问题。如果遇到此错误,请尝试卸载最近安装的所有内容,这可能会更改.NET Framework安装。

Well it seems like this problem can happen if something happenes with the installation of the .NET Framework 4.0. If you get this error try uninstalling anything you installed recently which might have altered the .NET framework installation.

这篇关于视图“〜/ Views / Login / Login.aspx”必须从ViewPage,ViewPage&lt; TModel&gt;,ViewUserControl或ViewUserControl&lt; TModel&gt;派生。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆