The view at '~/Areas/LeaveManage/Views/LeaveManage/Index.cshtml' must derive from WebViewPage

visual studio 报错:

The view at '~/Areas/LeaveManage/Views/LeaveManage/Index.cshtml' must derive from WebViewPageWebViewPage<TModel>

原因是在视图文件夹中缺少web.config。

新建一个mvc项目,将web.config拷贝过来即可。

阅读更多

没有更多推荐了,返回首页