The type 'Expression<>' is defined in an assembly that is not referenced

前端 未结 28 1319
渐次进展
渐次进展 2020-12-24 04:39

In ASP.NET MVC 4.5.2 Framework.

after typing

@Html.LabelFor()
or 
@Html.EditorFor()

in view

I\'m getting Error: The

28条回答
  •  时光说笑
    2020-12-24 04:56

    Add the following to Web.config (in root). I tried absolutely everything of earlier suggestions and nothing worked until I found the below. Hope it will save time for someone else.

    I use targetFramework="4.6.1", but change it to the version you use if different.

    
       
       
    
    

提交回复
热议问题