[IronPython] Specified language provider type is not registered.
curt at hagenlocher.org
Tue Sep 2 07:26:15 CEST 2008
Get the ScriptEngine directly from IronPython.Hosting.Python instead of
going through the runtime.
On Mon, Sep 1, 2008 at 10:19 PM, KE <hellosticky at gmail.com> wrote:
> Hi, I've compiled IronPython from the latest source code, and added some
> strong name keys to run in a partial trust AppDomain, but I can't quite get
> the ScriptEngine created:
> System.ArgumentException: Unknown language name: 'py'
> at Microsoft.Scripting.Hosting.ScriptRuntime.GetEngine(String
> at mycode
> The code creating this is:
> ScriptRuntimeSetup setup = new ScriptRuntimeSetup();
> ScriptRuntime runtime = new ScriptRuntime(setup);
> runtime.IO.SetOutput(ms, writer);
> ScriptEngine engine = runtime.GetEngine("py");
> ScriptScope scope = engine.CreateScope();
> I would prefer to do this programmatically, without any external .config
> files, if possible.
> Users mailing list
> Users at lists.ironpython.com
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Ironpython-users