title: Problems embedding IronPython in C# (Missing Compiler required member 'Microsoft.CSharp.RuntimeBinder.Binder.InvokeMember'
body: <p>I'm trying to do a simple hello world to test out embedding IronPython within C# but can't seem to resolve this problem..</p>
  
  <p>This is my C# file;</p>
  
  <pre><code>using System;
  using IronPython.Hosting;
  using Microsoft.Scripting;
  using Microsoft.Scripting.Hosting;
  using System.IO;
  
  public class dynamic_demo
  {
      static void Main()
      {
          var ipy = Python.CreateRuntime();
  
          dynamic test = ipy.UseFile(@"../../Test.py");
  
          test.Simple();
      }
  }
  </code></pre>
  
  <p>And this is the python class;</p>
  
  <pre><code>import sys
  
  def Simple():
      print 'Hello from Python'
      print "Call Dir(): "
      print dir()
      print "Print the Path: " 
      print sys.path
  </code></pre>
  
  <p>My target .NET framework is 4.0 and I'm using IronPython 2.6..</p>
  
  <p>I get 2 errors when I run this one is from a file called "CSC";
  Error   5   Missing compiler required member </p>
  
  <blockquote>
    <p>'Microsoft.CSharp.RuntimeBinder.Binder.InvokeMember'  C:\Users\Tolga\documents\visual
    studio
    2012\Projects\WindowsFormsApplication1\consoleTest\CSC    consoleTest</p>
  </blockquote>
  
  <p>The other one is from C# file i created</p>
  
  <blockquote>
    <p>Error 6   One or more types required to compile a dynamic expression
    cannot be found. Are you missing a
    reference?    C:\Users\Tolga\documents\visual studio
    2012\Projects\WindowsFormsApplication1\consoleTest\Program.cs 17  9   consoleTest</p>
  </blockquote>
  
  <p>Here's the output from the Build</p>
  
  <pre><code>1&gt;------ Build started: Project: consoleTest, Configuration: Debug Any CPU ------
  1&gt;CSC : warning CS1685: The predefined type 'System.Runtime.CompilerServices.CallSite' is defined in multiple assemblies in the global alias; using definition from 'c:\Program Files (x86)\IronPython 2.6\Microsoft.Scripting.Core.dll'
  1&gt;CSC : warning CS1685: The predefined type 'System.Runtime.CompilerServices.CallSite' is defined in multiple assemblies in the global alias; using definition from 'c:\Program Files (x86)\IronPython 2.6\Microsoft.Scripting.Core.dll'
  1&gt;CSC : warning CS1685: The predefined type 'System.Runtime.CompilerServices.CallSiteBinder' is defined in multiple assemblies in the global alias; using definition from 'c:\Program Files (x86)\IronPython 2.6\Microsoft.Scripting.Core.dll'
  1&gt;CSC : warning CS1685: The predefined type 'System.Runtime.CompilerServices.ExtensionAttribute' is defined in multiple assemblies in the global alias; using definition from 'c:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\mscorlib.dll'
  1&gt;CSC : error CS0656: Missing compiler required member 'Microsoft.CSharp.RuntimeBinder.Binder.InvokeMember'
  1&gt;C:\Users\Tolga\documents\visual studio 2012\Projects\WindowsFormsApplication1\consoleTest\Program.cs(17,9,17,20): error CS1969: One or more types required to compile a dynamic expression cannot be found. Are you missing a reference?
  ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
  </code></pre>