Thursday, September 17, 2015

Error CS0656: Missing compiler required member 'Microsoft.CSharp.RuntimeBinder.CSharpArgumentInfo.Create'

I was recently attempting to compile my Telerik Sitefinity Web Application in Visual Studio 2015 which included an MVC Controller which made a reference to the ViewBag property when I suddenly saw this error message in the Build Output which was preventing me from compiling my project succesfully:

Error CS0656: Missing compiler required member 'Microsoft.CSharp.RuntimeBinder.CSharpArgumentInfo.Create'

After doing some research on the error message, I discovered that Visual Studio 2015 for some reason was having trouble with the ViewBag property in my Controller!

As soon as I removed the reference to the ViewBag property from my Controller, I was able to successfully compile my Sitefinity Web Application once again!


3 comments:

  1. I think you need a reference to Microsoft.CSharp which is where the dynamic keywork is defined.

    ReplyDelete
  2. Adding a reference to Microsoft.CSharp will solve it. It did for me

    ReplyDelete
  3. reference to Microsoft.CSharp worked for me to.

    ReplyDelete