<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext="edit">
  <o:idmap v:ext="edit" data="1" />
 </o:shapelayout></xml><![endif]-->
</head>

<body lang=EN-US link=blue vlink=purple>

<div class=Section1>

<p class=MsoNormal>Hi,<o:p></o:p></p>

<p class=MsoNormal>I am new to IronPython..<o:p></o:p></p>

<p class=MsoNormal>I have downloaded IronPython from the website <o:p></o:p></p>

<p class=MsoNormal><a href="http://www.codeplex.com/IronPython">http://www.codeplex.com/IronPython</a>
lastweek.<o:p></o:p></p>

<p class=MsoNormal>When I open IronPython Console, it shows<o:p></o:p></p>

<p class=MsoNormal>IronPython 2.6 (2.6.10920.0) on .NET 2.0.50727.3053<o:p></o:p></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal>I am trying to invoke the Python engine at run time <o:p></o:p></p>

<p class=MsoNormal>By calling in c# source(.NET 4.0 framework)<o:p></o:p></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;
font-family:Consolas'>_runtime = <span style='color:#2B91AF'>ScriptRuntime</span>.CreateFromConfiguration()<o:p></o:p></span></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal>When I add Microsoft.Scripting as a Reference to this
project, it shows the version as 2.6.911.0<o:p></o:p></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal>And my app.config has<o:p></o:p></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;
font-family:Consolas;color:blue'>&lt;?</span><span style='font-size:9.5pt;
font-family:Consolas;color:#A31515'>xml</span><span style='font-size:9.5pt;
font-family:Consolas;color:blue'> </span><span style='font-size:9.5pt;
font-family:Consolas;color:red'>version</span><span style='font-size:9.5pt;
font-family:Consolas;color:blue'>=</span><span style='font-size:9.5pt;
font-family:Consolas'>&quot;<span style='color:blue'>1.0</span>&quot;<span
style='color:blue'>?&gt;</span><o:p></o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;
font-family:Consolas;color:blue'>&lt;</span><span style='font-size:9.5pt;
font-family:Consolas;color:#A31515'>configuration</span><span style='font-size:
9.5pt;font-family:Consolas;color:blue'>&gt;</span><span style='font-size:9.5pt;
font-family:Consolas'><o:p></o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;
font-family:Consolas;color:blue'>&nbsp; &lt;</span><span style='font-size:9.5pt;
font-family:Consolas;color:#A31515'>configSections</span><span
style='font-size:9.5pt;font-family:Consolas;color:blue'>&gt;</span><span
style='font-size:9.5pt;font-family:Consolas'><o:p></o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;
font-family:Consolas;color:blue'>&nbsp;&nbsp;&nbsp; &lt;</span><span
style='font-size:9.5pt;font-family:Consolas;color:#A31515'>section</span><span
style='font-size:9.5pt;font-family:Consolas;color:blue'> </span><span
style='font-size:9.5pt;font-family:Consolas;color:red'>name</span><span
style='font-size:9.5pt;font-family:Consolas;color:blue'>=</span><span
style='font-size:9.5pt;font-family:Consolas'>&quot;<span style='color:blue'>microsoft.scripting</span>&quot;<span
style='color:blue'> </span><span style='color:red'>type</span><span
style='color:blue'>=</span>&quot;<span style='color:blue'>Microsoft.Scripting.Hosting.Configuration.Section,
Microsoft.Scripting, Version=2.6.911.0, Culture=neutral,
PublicKeyToken=31bf3856ad364e35</span>&quot;<span style='color:blue'> </span><span
style='color:red'>requirePermission</span><span style='color:blue'>=</span>&quot;<span
style='color:blue'>false</span>&quot;<span style='color:blue'>/&gt;</span><o:p></o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;
font-family:Consolas;color:blue'>&nbsp; &lt;/</span><span style='font-size:
9.5pt;font-family:Consolas;color:#A31515'>configSections</span><span
style='font-size:9.5pt;font-family:Consolas;color:blue'>&gt;</span><span
style='font-size:9.5pt;font-family:Consolas'><o:p></o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;
font-family:Consolas;color:blue'>&nbsp; &lt;</span><span style='font-size:9.5pt;
font-family:Consolas;color:#A31515'>microsoft.scripting</span><span
style='font-size:9.5pt;font-family:Consolas;color:blue'>&gt;</span><span
style='font-size:9.5pt;font-family:Consolas'><o:p></o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;
font-family:Consolas;color:blue'>&nbsp;&nbsp;&nbsp; &lt;</span><span
style='font-size:9.5pt;font-family:Consolas;color:#A31515'>languages</span><span
style='font-size:9.5pt;font-family:Consolas;color:blue'>&gt;</span><span
style='font-size:9.5pt;font-family:Consolas'><o:p></o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;
font-family:Consolas;color:blue'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;</span><span
style='font-size:9.5pt;font-family:Consolas;color:#A31515'>language</span><span
style='font-size:9.5pt;font-family:Consolas;color:blue'> </span><span
style='font-size:9.5pt;font-family:Consolas;color:red'>names</span><span
style='font-size:9.5pt;font-family:Consolas;color:blue'>=</span><span
style='font-size:9.5pt;font-family:Consolas'>&quot;<span style='color:blue'>IronPython,Python,py</span>&quot;<span
style='color:blue'> </span><span style='color:red'>extensions</span><span
style='color:blue'>=</span>&quot;<span style='color:blue'>.py</span>&quot;<span
style='color:blue'> </span><span style='color:red'>displayName</span><span
style='color:blue'>=</span>&quot;<span style='color:blue'>IronPython 2.0 Beta</span>&quot;<span
style='color:blue'> </span><span style='color:red'>type</span><span
style='color:blue'>=</span>&quot;<span style='color:blue'>IronPython.Runtime.PythonContext,IronPython,
Version=2.0.0.0000, Culture=neutral, PublicKeyToken=31bf3856ad364e35</span>&quot;<span
style='color:blue'>/&gt;</span><o:p></o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;
font-family:Consolas;color:blue'>&nbsp;&nbsp;&nbsp; &lt;/</span><span
style='font-size:9.5pt;font-family:Consolas;color:#A31515'>languages</span><span
style='font-size:9.5pt;font-family:Consolas;color:blue'>&gt;</span><span
style='font-size:9.5pt;font-family:Consolas'><o:p></o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;
font-family:Consolas;color:blue'>&nbsp; &lt;/</span><span style='font-size:
9.5pt;font-family:Consolas;color:#A31515'>microsoft.scripting</span><span
style='font-size:9.5pt;font-family:Consolas;color:blue'>&gt;</span><span
style='font-size:9.5pt;font-family:Consolas'><o:p></o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;
font-family:Consolas;color:blue'>&lt;</span><span style='font-size:9.5pt;
font-family:Consolas;color:#A31515'>startup</span><span style='font-size:9.5pt;
font-family:Consolas;color:blue'>&gt;&lt;</span><span style='font-size:9.5pt;
font-family:Consolas;color:#A31515'>supportedRuntime</span><span
style='font-size:9.5pt;font-family:Consolas;color:blue'> </span><span
style='font-size:9.5pt;font-family:Consolas;color:red'>version</span><span
style='font-size:9.5pt;font-family:Consolas;color:blue'>=</span><span
style='font-size:9.5pt;font-family:Consolas'>&quot;<span style='color:blue'>v4.0</span>&quot;<span
style='color:blue'> </span><span style='color:red'>sku</span><span
style='color:blue'>=</span>&quot;<span style='color:blue'>.NETFramework,Version=v4.0</span>&quot;<span
style='color:blue'>/&gt;&lt;/</span><span style='color:#A31515'>startup</span><span
style='color:blue'>&gt;&lt;/</span><span style='color:#A31515'>configuration</span><span
style='color:blue'>&gt;</span><o:p></o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;
font-family:Consolas'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;
font-family:Consolas'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;
font-family:Consolas'>During runtime, I get the error:<o:p></o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;
font-family:Consolas'>An error occurred creating the configuration section
handler for microsoft.scripting: Could not load file or assembly
'Microsoft.Scripting, Version=2.6.911.0, Culture=neutral,
PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The located
assembly's manifest definition does not match the assembly reference.
(Exception from HRESULT: 0x80131040<o:p></o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;
font-family:Consolas'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;
font-family:Consolas'>What am I missing here? Is my version wrong or
publicKeyToken wrong or??<o:p></o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;
font-family:Consolas'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;
font-family:Consolas'>Any help would be greatly appreciated<o:p></o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;
font-family:Consolas'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;
font-family:Consolas'>Thank you<o:p></o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;
font-family:Consolas'>NPotti <o:p></o:p></span></p>

</div>

</body>

</html>