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

Neelima Potti potti_n at subway.com
Mon Jan 25 22:47:57 CET 2010


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



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




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



<startup><supportedRuntime version="v4.0"



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


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ironpython-users/attachments/20100125/6516fedd/attachment.html>

More information about the Ironpython-users mailing list