Problems embedding IronPython in C# (Missing Compiler required member 'Microsoft.CSharp.RuntimeBinder.Binder.InvokeMember'

You need to add a reference to Microsoft.CSharp.dll. This provides the required types for using dynamic in C#.

Also, you will likely need to upgrade to IronPython 2.7[.3] or later, as there are some incompatibilities with old releases and the newer .NET frameworks.


You will also get this error if you've included references to the wrong target assemblies. For instance, if you're building against the .Net 4.0 Full profile, you must include the IronPython assemblies from:

<install directory>\IronPython 2.7\Platforms\Net40

Including assemblies from the Net35 directory will also result in the missing RuntimeBinder error.