IronPython,单击一次,.NET 2.0错误 – 想法?

我正在尝试推出一个测试应用程序,以测试修正Click Once Smart Client应用程序的可行性,该应用程序还使用可通过嵌入IronPython定制的规则引擎。

到目前为止,除了我之外,所有用户在调用脚本引擎时都会收到此错误(如下所示)。

我是否需要做一些特别的事情来强制部署IronPython和Scripting程序集? 我认为这将是自动的,因为它们在我的项目中被引用。 这在.NET 2.0中是不可行的吗?

思考?

 **************exception文本**************
 System.MissingMethodException:找不到方法:'Void System.Reflection.Emit.DynamicMethod..ctor(System.String,System.Type,System.Type [],Boolean)'。
   在Microsoft.Scripting.Utils.Helpers.CreateDynamicMethod(String name,Type returnType,Type [] parameterTypes)
   在Microsoft.Linq.Expressions.Compiler.Snippets.CreateDynamicMethod(String name,Type returnType,Type [] parameterTypes)
   在Microsoft.Linq.Expressions.Compiler.LambdaCompiler.CreateDynamicLambdaCompiler(CompilerScope范围,String methodName,Type returnType,IList`1 paramTypes,IList`1 paramNames,Boolean closure,Boolean emitDebugSymbols,Boolean forceDynamic)
   在Microsoft.Linq.Expressions.Compiler.LambdaCompiler.CompileLambda(LambdaExpression lambda,Type delegateType,Boolean emitDebugSymbols,Boolean forceDynamic,MethodInfo&method)
   在Microsoft.Linq.Expressions.Compiler.LambdaCompiler.CompileLambda [T](LambdaExpression lambda,Boolean emitDebugSymbols)
   在Microsoft.Linq.Expressions.LambdaExpression.Compile [T](Boolean emitDebugSymbols)
   在Microsoft.Scripting.Runtime.OptimizedScriptCode.InvokeTarget(LambdaExpression代码,范围范围)
   在Microsoft.Scripting.SourceUnit.Execute(范围范围,ErrorSink errorSink)
   在Microsoft.Scripting.Hosting.ScriptSource.Execute(ScriptScope范围)
    at UAP.UI.Form1.button1_Click(Object sender,EventArgs e)
   在System.Windows.Forms.Control.OnClick(EventArgs e)
   在System.Windows.Forms.Button.OnClick(EventArgs e)
   在System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
   在System.Windows.Forms.Control.WmMouseUp(Message&m,MouseButtons按钮,Int32单击)
   在System.Windows.Forms.Control.WndProc(Message&m)
   在System.Windows.Forms.ButtonBase.WndProc(Message&m)
   在System.Windows.Forms.Button.WndProc(Message&m)
   在System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message&m)
   在System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message&m)
   在System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd,Int32 msg,IntPtr wparam,IntPtr lparam)

IronPython要求运行.NET 2.0SP1或更高版本。 由于SP1中添加了重载,因此发生此exception。

如果右键单击项目并转到“ Properties Publish选项卡允许您为应用程序指定先决条件安装。

大概你可以在这里提供IronPython安装可执行文件的路径。