<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:x="urn:schemas-microsoft-com:office:excel" xmlns:p="urn:schemas-microsoft-com:office:powerpoint" xmlns:a="urn:schemas-microsoft-com:office:access" xmlns:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882" xmlns:s="uuid:BDC6E3F0-6DA3-11d1-A2A3-00AA00C14882" xmlns:rs="urn:schemas-microsoft-com:rowset" xmlns:z="#RowsetSchema" xmlns:b="urn:schemas-microsoft-com:office:publisher" xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet" xmlns:c="urn:schemas-microsoft-com:office:component:spreadsheet" xmlns:odc="urn:schemas-microsoft-com:office:odc" xmlns:oa="urn:schemas-microsoft-com:office:activation" xmlns:html="http://www.w3.org/TR/REC-html40" xmlns:q="http://schemas.xmlsoap.org/soap/envelope/" xmlns:rtc="http://microsoft.com/officenet/conferencing" xmlns:D="DAV:" xmlns:Repl="http://schemas.microsoft.com/repl/" xmlns:mt="http://schemas.microsoft.com/sharepoint/soap/meetings/" xmlns:x2="http://schemas.microsoft.com/office/excel/2003/xml" xmlns:ppda="http://www.passport.com/NameSpace.xsd" xmlns:ois="http://schemas.microsoft.com/sharepoint/soap/ois/" xmlns:dir="http://schemas.microsoft.com/sharepoint/soap/directory/" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:dsp="http://schemas.microsoft.com/sharepoint/dsp" xmlns:udc="http://schemas.microsoft.com/data/udc" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:sub="http://schemas.microsoft.com/sharepoint/soap/2002/1/alerts/" xmlns:ec="http://www.w3.org/2001/04/xmlenc#" xmlns:sp="http://schemas.microsoft.com/sharepoint/" xmlns:sps="http://schemas.microsoft.com/sharepoint/soap/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:udcs="http://schemas.microsoft.com/data/udc/soap" xmlns:udcxf="http://schemas.microsoft.com/data/udc/xmlfile" xmlns:udcp2p="http://schemas.microsoft.com/data/udc/parttopart" xmlns:wf="http://schemas.microsoft.com/sharepoint/soap/workflow/" xmlns:dsss="http://schemas.microsoft.com/office/2006/digsig-setup" xmlns:dssi="http://schemas.microsoft.com/office/2006/digsig" xmlns:mdssi="http://schemas.openxmlformats.org/package/2006/digital-signature" xmlns:mver="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns:mrels="http://schemas.openxmlformats.org/package/2006/relationships" xmlns:spwp="http://microsoft.com/sharepoint/webpartpages" xmlns:ex12t="http://schemas.microsoft.com/exchange/services/2006/types" xmlns:ex12m="http://schemas.microsoft.com/exchange/services/2006/messages" xmlns:pptsl="http://schemas.microsoft.com/sharepoint/soap/SlideLibrary/" xmlns:spsl="http://microsoft.com/webservices/SharePointPortalServer/PublishedLinksService" xmlns:Z="urn:schemas-microsoft-com:" xmlns:st="&#1;" 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:SimSun;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:"\@SimSun";
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
@font-face
        {font-family:"Segoe UI";
        panose-1:2 11 5 2 4 2 4 2 2 3;}
 /* 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;}
p
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
span.EmailStyle18
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.EmailStyle19
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.EmailStyle20
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.EmailStyle21
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@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><span style='color:#1F497D'>The DLR is not exclusively for
.NET 4.0, and until recently, it was not part of the framework. Starting with
.NET 4.0, core bits of the DLR have been added as a feature.<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>IronPython 2.6 runs on .NET 2.0
SP1 and contains its own distribution of the DLR. The release page refers to
this distribution when it mentions the update. On the other hand, IronPython
2.6 CTP for .NET 4.0 Beta 2 does not need to include the DLR core.<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>Hope this clears things up,<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>- David<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<div>

<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'>

<p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span
style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>
users-bounces@lists.ironpython.com [mailto:users-bounces@lists.ironpython.com] <b>On
Behalf Of </b>Neelima Potti<br>
<b>Sent:</b> Tuesday, January 26, 2010 1:24 PM<br>
<b>To:</b> 'Discussion of IronPython'<br>
<b>Subject:</b> Re: [IronPython] to invoke ironpython from runtime in .NET
framework 4.0<o:p></o:p></span></p>

</div>

</div>

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

<div>

<p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman","serif";
color:#1F497D'>Thank you Dino&#8230;it worked.<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman","serif";
color:#1F497D'>but&nbsp;I have a Q: <o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman","serif";
color:#1F497D'><a
href="http://ironpython.codeplex.com/Release/ProjectReleases.aspx?ReleaseId=12482">http://ironpython.codeplex.com/Release/ProjectReleases.aspx?ReleaseId=12482</a>...
Whose release notes say &#8220;</span><span style='font-size:9.5pt;font-family:
"Segoe UI","sans-serif";color:#30332D'>Updating to the latest version of the
DLR&#8221;..so doesn&#8217;t that mean it is .NET framework 4.0 as DLR is for
.NET 4.0</span><span style='font-size:12.0pt;font-family:"Times New Roman","serif";
color:#1F497D'><o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'><a
href="http://ironpython.codeplex.com/Release/ProjectReleases.aspx?ReleaseId=28125">http://ironpython.codeplex.com/Release/ProjectReleases.aspx?ReleaseId=28125</a>
&#8230;</span><span style='font-size:9.5pt;font-family:"Segoe UI","sans-serif";
color:#30332D'>&quot;IronPython 2.6 CTP for .NET 4.0 Beta 2&quot;.<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:9.5pt;font-family:"Segoe UI","sans-serif";
color:#30332D'>In terms of DLR..what is the difference between the above 2
releases&#8230;<o:p></o:p></span></p>

</div>

<p class=MsoNormal><span style='color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<div>

<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'>

<p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span
style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>
users-bounces@lists.ironpython.com [mailto:users-bounces@lists.ironpython.com] <b>On
Behalf Of </b>Dino Viehland<br>
<b>Sent:</b> Monday, January 25, 2010 4:51 PM<br>
<b>To:</b> Discussion of IronPython<br>
<b>Subject:</b> Re: [IronPython] to invoke ironpython from runtime in .NET
framework 4.0<o:p></o:p></span></p>

</div>

</div>

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

<p class=MsoNormal><span style='color:#1F497D'>You need to download the version
of IronPython which is built for .NET 4.0: <a
href="http://ironpython.codeplex.com/Release/ProjectReleases.aspx?ReleaseId=28125">http://ironpython.codeplex.com/Release/ProjectReleases.aspx?ReleaseId=28125</a><o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>That&#8217;ll just work and
it&#8217;ll support interop w/ C# 4.0.<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<div style='border:none;border-left:solid blue 1.5pt;padding:0in 0in 0in 4.0pt'>

<div>

<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'>

<p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span
style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> users-bounces@lists.ironpython.com
[mailto:users-bounces@lists.ironpython.com] <b>On Behalf Of </b>Neelima Potti<br>
<b>Sent:</b> Monday, January 25, 2010 1:48 PM<br>
<b>To:</b> users@lists.ironpython.com<br>
<b>Subject:</b> [IronPython] to invoke ironpython from runtime in .NET
framework 4.0<o:p></o:p></span></p>

</div>

</div>

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

<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>

<p class=MsoNormal style='margin-bottom:12.0pt'><span style='font-size:12.0pt;
font-family:"Times New Roman","serif";background:white'><o:p>&nbsp;</o:p></span></p>

<p align=center style='text-align:center'><span style='background:white'>Click <a
href="https://www.mailcontrol.com/sr/WSxS7jK8MNnTndxI!oX7UiNQo6b55PW6krXvwLfSLzORUhF!aIXAHsg9ErZRenzw1SwZVmyjaGsNWyQ1f1p+mg==">here</a>
to report this email as spam.<o:p></o:p></span></p>

</div>

</body>

</html>