The name 'model' does not exist in current context in MVC3

后端 未结 20 2249
-上瘾入骨i
-上瘾入骨i 2020-11-29 02:53

I added a cshtml page in an project. When I tried to add the following declaration to it, I get an error: \"The name \'model\' does not exist in current context\".



        
20条回答
  •  不知归路
    2020-11-29 03:01

    It is a horrible mistake but:

    Be sure you have Web.config files in your View at Remote. Maybe you skipped to upload it by your Ftp programme's filters.

提交回复
热议问题