[IronPython] to invoke ironpython from runtime in .NET framework 4.0

Neelima Potti potti_n at subway.com
Tue Jan 26 22:23:48 CET 2010


Thank you Dino.it worked.

but I have a Q: 

http://ironpython.codeplex.com/Release/ProjectReleases.aspx?ReleaseId=12482.
.. Whose release notes say "Updating to the latest version of the DLR"..so
doesn't that mean it is .NET framework 4.0 as DLR is for .NET 4.0

http://ironpython.codeplex.com/Release/ProjectReleases.aspx?ReleaseId=28125
."IronPython 2.6 CTP for .NET 4.0 Beta 2".

In terms of DLR..what is the difference between the above 2 releases.

 

From: users-bounces at lists.ironpython.com
[mailto:users-bounces at lists.ironpython.com] On Behalf Of Dino Viehland
Sent: Monday, January 25, 2010 4:51 PM
To: Discussion of IronPython
Subject: Re: [IronPython] to invoke ironpython from runtime in .NET
framework 4.0

 

You need to download the version of IronPython which is built for .NET 4.0:
http://ironpython.codeplex.com/Release/ProjectReleases.aspx?ReleaseId=28125

 

That'll just work and it'll support interop w/ C# 4.0.

 

From: users-bounces at lists.ironpython.com
[mailto:users-bounces at lists.ironpython.com] On Behalf Of Neelima Potti
Sent: Monday, January 25, 2010 1:48 PM
To: users at lists.ironpython.com
Subject: [IronPython] to invoke ironpython from runtime in .NET framework
4.0

 

Hi,

I am new to IronPython..

I have downloaded IronPython from the website 

http://www.codeplex.com/IronPython lastweek.

When I open IronPython Console, it shows

IronPython 2.6 (2.6.10920.0) on .NET 2.0.50727.3053

 

I am trying to invoke the Python engine at run time 

By calling in c# source(.NET 4.0 framework)

 

_runtime = ScriptRuntime.CreateFromConfiguration()

 

When I add Microsoft.Scripting as a Reference to this project, it shows the
version as 2.6.911.0

 

And my app.config has

 

<?xml version="1.0"?>

<configuration>

  <configSections>

    <section name="microsoft.scripting"
type="Microsoft.Scripting.Hosting.Configuration.Section,
Microsoft.Scripting, Version=2.6.911.0, Culture=neutral,
PublicKeyToken=31bf3856ad364e35" requirePermission="false"/>

  </configSections>

  <microsoft.scripting>

    <languages>

      <language names="IronPython,Python,py" extensions=".py"
displayName="IronPython 2.0 Beta"
type="IronPython.Runtime.PythonContext,IronPython, Version=2.0.0.0000,
Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>

    </languages>

  </microsoft.scripting>

<startup><supportedRuntime version="v4.0"
sku=".NETFramework,Version=v4.0"/></startup></configuration>

 

 

During runtime, I get the error:

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

 

What am I missing here? Is my version wrong or publicKeyToken wrong or??

 

Any help would be greatly appreciated

 

Thank you

NPotti 

 

Click here
<https://www.mailcontrol.com/sr/WSxS7jK8MNnTndxI!oX7UiNQo6b55PW6krXvwLfSLzOR
UhF!aIXAHsg9ErZRenzw1SwZVmyjaGsNWyQ1f1p+mg==>  to report this email as spam.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ironpython-users/attachments/20100126/7a4d993c/attachment.html>


More information about the Ironpython-users mailing list