[IronPython] System, Version

Ben Hall ben2004uk at googlemail.com
Wed Jun 11 00:48:40 CEST 2008


I have just downloaded and upgraded my WinForms application to use the
latest Dynamic Languages for Silverlight Beta 2.  I think I must be
confused, but the two DLR assemblies (Microsoft.Scripting.Core,
Version=, Culture=neutral, PublicKeyToken=31bf3856ad364e35 and
Microsoft.Scripting, Version=, Culture=neutral,
PublicKeyToken=31bf3856ad364e35) both reference System, Version - the one shipped with Silverlight and not System, Version as shipped with IronPython Beta 2.

I expected the DLR assemblies to work in both WinForms and Silverlight.

As such, when I try and execute IronPython code, I get the following exception.

Unhandled Exception System.IO.FileNotFoundException: Could not load
file or assembly 'System, Version=, Culture=neutral,
PublicKeyToken=7cec85d7bea7798e' or one of its dependencies. The
system cannot find the file specified.
File name: 'System, Version=, Culture=neutral,
   at IronPython.Compiler.Parser.Reset(SourceUnit sourceUnit,
PythonLanguageFeatures languageFeatures)
   at IronPython.Compiler.Parser..ctor(Tokenizer tokenizer, ErrorSink
errorSink, ParserSink parserSink, PythonLanguageFeatures
   at IronPython.Compiler.Parser.CreateParser(CompilerContext context,
PythonEngineOptions options, Boolean verbatim)
   at IronPython.Compiler.Parser.CreateParser(CompilerContext context,
PythonEngineOptions options)
   at IronPython.Runtime.PythonContext.ParseSourceCode(CompilerContext context)
   at Microsoft.Scripting.SourceUnit.Parse(CompilerOptions options,
ErrorSink errorSink)
   at Microsoft.Scripting.SourceUnit.Compile(CompilerOptions options,
ErrorSink errorSink)
   at Microsoft.Scripting.SourceUnit.Execute(Scope scope, ErrorSink errorSink)
   at Microsoft.Scripting.SourceUnit.Execute(Scope scope)
   at Microsoft.Scripting.Hosting.ScriptScope.Execute(String code)
   at DLRHost.Engine.ScriptExecutor.ExecuteStatement(String code) in
E:\Source Control\DLRHost\trunk\src\DLRHost.Engine\ScriptExecutor.cs:line

If someone could explain this to me, that would be great!



More information about the Ironpython-users mailing list