deyi140250的博客Solution 1. Add following line on top of your cshtml file. ...@inheritsSystem.Web.Mvc.WebViewPage MSDN Blogs>Gaurav's Blog>The view must derive from WebViewPage, or WebViewPage&...
weixin_34009794的博客当通过一个空的站点构建ASP.NET MVC时经常会出现各种配置缺少的问题,最简单但的办法是吧VS自动生成的web.config文件拷贝到对应的目录下面 The view must derive from WebViewPage, or WebViewPage<TModel...