Index.cshtml”处的视图必须派生自 WebViewPage 或 WebViewPage<TModel>。

 

解决方案:

1,在每个视图上面添加

@inherits System.Web.Mvc.WebViewPage

2,将views中的web.config COPY到新的视图模版文件夹下,就可以了

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-05
  • 2022-01-22
猜你喜欢
  • 2021-09-03
  • 2022-12-23
  • 2021-10-01
  • 2022-02-24
  • 2022-01-07
  • 2022-12-23
相关资源
相似解决方案