ASP.Net MVC4 Root cshtml and “does not inherit from 'System.Web.WebPages.WebPage”

后端 未结 3 1112
花落未央
花落未央 2021-01-04 00:52

I have followed the answers provided by very similar posts as you will see in the step by step listed below.

  • Razor view Type does not inherit from 'Syst

3条回答
  •  悲哀的现实
    2021-01-04 01:37

    I am a beginner to this, but one thing I did not realise is that cshtml pages are served through a controller, rather than by loading them directly.

    In combination with the above, I also had to set the following key to false in the web.config file:

    
    

提交回复
热议问题