locked
My project is giving me an error that I cannot find a solution to on the internet RRS feed

  • Question

  • User1451609391 posted

    Hello. I am running an mvc5 website. My ms visual compiler is giving me this error.

    Severity    Code    Description    Project    File    Line    Suppression State
    Error    CS0012    The type 'Expression<>' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.    1_Views_Home_Account.cshtml    C:\Users\MyName\source\repos\VmFusion2020\VmFusion2020\Views\Home\Account.cshtml    62    Active

    The error is comping from this code in my .cshtml files. @Html.LabelFor   , @Html.PasswordFor , Html.ValidationMessageFor.......

    I tried to add that assembly but the compiler says its already added by default. I never had this issue before. Is anyone familiar with this problem . Thanks for any tips.

    Friday, October 23, 2020 1:29 PM

All replies