嵌入IronRuby和IronPython [英] Embedding both IronRuby and IronPython

查看:137
本文介绍了嵌入IronRuby和IronPython的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在示例应用程序上同时运行ironruby和ironpython. 我有一个例外- 未处理的异常:System.Reflection.TargetInvocationException:异常具有 被调用的目标抛出. ---> System.Reflection.TargetInvocat ionException:无法加载语言"IronPython 2.6.2":无法加载文件或 程序集'Microsoft.Dynamic,Version = 1.0.0.0,Culture = neutral,PublicKeyToken = 3 1bf3856ad364e35'或其依赖项之一.系统找不到文件spe 有条件的. ---> System.IO.FileNotFoundException:无法加载文件或程序集'M icrosoft.Dynamic,版本= 1.0.0.0,文化=中性,PublicKeyToken = 31bf3856ad364 e35"或其依赖项之一.

I am trying to run both ironruby and ironpython at the sample application. I am getting an exception - Unhandled Exception: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Reflection.TargetInvocat ionException: Failed to load language 'IronPython 2.6.2': Could not load file or assembly 'Microsoft.Dynamic, Version=1.0.0.0, Culture=neutral, PublicKeyToken=3 1bf3856ad364e35' or one of its dependencies. The system cannot find the file spe cified. ---> System.IO.FileNotFoundException: Could not load file or assembly 'M icrosoft.Dynamic, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364 e35' or one of its dependencies.

该怎么办?如何解决?

推荐答案

请参阅我的

See my answer to another similar question. IronPython and IronRuby depend on other libraries to work. One of these libraries is Microsoft.Dynamic, which your application seems unable to find. Make sure the DLL is in the same directory as your application (or in the GAC).

我相信这个例外与在同一项目中同时使用IronPython和IronRuby无关;只是巧合.

I believe this exception has nothing to do with using both IronPython and IronRuby in the same project; that is merely a coincidence.

这篇关于嵌入IronRuby和IronPython的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆