The view at ‘~/Views/Home/Index.aspx’ must derive from ViewPage, ViewPage, ViewUserControl, or ViewUserControl.
2010-11-29 13:03
597 查看
今天在使用vs2010打开csla的MVC项目时,出现了提示信息:
总结:检查System.Web.MVC程序集的版本是否正确。
The view at ‘~/Views/Home/Index.aspx’ must derive from ViewPage, ViewPage, ViewUserControl, or ViewUserControl.
经过分析,是由于vs2010MVC项目的web.config配置的是MVC2.0的程序集,而项目引用了MVC3.0的程序集导致。总结:检查System.Web.MVC程序集的版本是否正确。
相关文章推荐
- Getting the error “The view at '~/Views/Page/home.aspx' must derive from ViewPage, ViewPage<TViewDat
- “~/Views/Home/Text.aspx”处的视图必须派生自 ViewPage、ViewPage<TModel>、ViewUserControl 或 ViewUserControl<TModel>。
- “~/Views/Login/Login.aspx”处的视图必须派生自 ViewPage、ViewPage<TModel>、ViewUserControl 或 ViewUserControl<TModel>。
- ASP.NET MVC - The view must derive from WebViewPage, or WebViewPage<TModel>
- How to pass a value from User Control to the Page
- Topology activation failed. Each partition must have at least one index component from the previous topology in the new topology, in the same host.
- Raise event from user control to main page / Event delegation from user control to aspx page in ASP.
- Look at the logic host by OO or SP from Maintaince View
- How to pass ViewState value from web form page to web user control page?
- Index.cshtml”处的视图必须派生自 WebViewPage 或 WebViewPage<TModel>。
- swagger在本地没问题可是上传至服务器报错解决办法Can't read from server. It may not have the appropriate access-control-or
- Refresh a GridView control on the parent page, from a pop up window
- Django URLs error: view must be a callable or a list/tuple in the case of include()
- Install the IIS 6.0 Management Compatibility Components in Windows 7 or in Windows Vista from Control Panel
- The view 'Index' or its master was not found or no view engine supports the searched locations.
- System.FormatException: Index (zero based) must be greater than or equal to zero and less than the size of the argument list
- from __future__ imports must occur at the beginning of the file问题的解决
- RMAN-06563: control file or SPFILE must be restored using FROM AUTOBACKUP
- android.view.ViewRootImpl$CalledFromWrongThreadException: Only the original thread that created a view hierarchy can touch its views.
- TypeError: view must be a callable or a list/tuple in the case of include()