Missing compiler required member 'Microsoft.CSharp.RuntimeBinder.Binder.SetMember'_ RRS feed

  • Question

  • User1451609391 posted

    Hello. I have an MVC project that I have been working on for a long time. All of a sudden. I have been getting an error that has stopped me from being able to recompile my project. It says this.

    Severity    Code    Description    Project    File    Line    Suppression State
    Error    CS0656    Missing compiler required member 'Microsoft.CSharp.RuntimeBinder.Binder.SetMember'   

    This error makes the use of viewbag cause an error.

    I have Microsoft.CSharp references and theres no problem there. Does anyone know what could be causeing this problem? Thanks for any tips.

    Sunday, October 25, 2020 2:05 PM

All replies

  • User1686398519 posted

    Hi johnboyman12, 

    1. The following situations may cause Compiler Error CS0656
      1. Your installation of the common language runtime is corrupt.
      2. You have a reference to an assembly that defines a type that is also found in the common language runtime. However, your assembly's type is not defined the way the C# compiler expects.
    2. You can try to solve your problem by doing this:
      • Reinstall Microsoft.CSharp via NuGet.

    Best Regards,


    Monday, October 26, 2020 2:02 AM
  • User1451609391 posted

    Thanks for the help but the only solution was to throw the project out and start over from my last backup. Thanks.

    Monday, October 26, 2020 12:59 PM