问题描述
我在尝试推出一个测试应用程序来测试矫点击一次智能客户端应用程序,还采用了规则引擎定制嵌入的IronPython的可行性。
到目前为止,所有用户,但我得到这个错误(如下图)调用脚本引擎的时候。
我需要做一些特殊的兵力部署的IronPython和脚本组件?我认为这将是自动的,因为他们在我的项目中引用。这只是没有在.NET 2.0可行吗?
思考?
**************异常文本************** System.MissingMethodException:未找到方法:虚空System.Reflection.Emit.DynamicMethod..ctor(System.String,System.Type的,System.Type的[],布尔值)。 在Microsoft.Scripting.Utils.Helpers.CreateDynamicMethod(字符串名称,类型的返回类型,类型[] parameterTypes) 在Microsoft.Linq.Ex pressions.Compiler.Snippets.CreateDynamicMethod(字符串名称,类型的返回类型,类型[] parameterTypes) 在Microsoft.Linq.Ex pressions.Compiler.LambdaCompiler.CreateDynamicLambdaCompiler(CompilerScope范围,字符串方法名,类型的返回类型,IList`1 paramTypes,IList`1 paramNames,布尔关闭,布尔emitDebugSymbols,布尔forceDynamic) 在Microsoft.Linq.Ex pressions.Compiler.LambdaCompiler.CompileLambda(LambdaEx pression拉姆达,类型delegateType,布尔emitDebugSymbols,布尔forceDynamic,MethodInfo的&法) 在Microsoft.Linq.Ex pressions.Compiler.LambdaCompiler.CompileLambda [T](LambdaEx pression拉姆达,布尔emitDebugSymbols) 在Microsoft.Linq.Ex pressions.LambdaEx pression.Compile [T](布尔emitDebugSymbols) 在Microsoft.Scripting.Runtime.OptimizedScript code.InvokeTarget(LambdaEx pression code,适用范围适用范围) 在Microsoft.Scripting.SourceUnit.Execute(适用范围适用范围,ErrorSink errorSink) 在Microsoft.Scripting.Hosting.ScriptSource.Execute(ScriptScope范围) 在UAP.UI.Form1.button1_Click(对象发件人,EventArgs的) 在System.Windows.Forms.Control.OnClick(EventArgs的五) 在System.Windows.Forms.Button.OnClick(EventArgs的五) 在System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent) 在System.Windows.Forms.Control.WmMouseUp(消息&M,MouseButtons按钮,点击的Int32) 在System.Windows.Forms.Control.WndProc(消息&M) 在System.Windows.Forms.ButtonBase.WndProc(消息&M) 在System.Windows.Forms.Button.WndProc(消息&M) 在System.Windows.Forms.Control.ControlNativeWindow.OnMessage(消息&M) 在System.Windows.Forms.Control.ControlNativeWindow.WndProc(消息&M) 在System.Windows.Forms.NativeWindow.Callback(IntPtr的的HWND,味精的Int32,IntPtr的WPARAM,IntPtr的LPARAM)
IronPython的requiers .NET 2.0SP1或更高版本上运行。此异常情况发生原因是,添加在SP1的过剩。
I'm am trying to roll out a test application to test the feasibility of righting a Click Once Smart Client app that also uses a rules engine customizable by embedding IronPython.
So far all users but me get this error (below) when invoking the script engine.
Do I need to do something special to force deployment of the IronPython and Scripting assemblies? I thought that would be automatic because they were referenced in my project.Is this just not feasible in .NET 2.0?
Thoughts?
************** Exception Text ************** System.MissingMethodException: Method not found: 'Void System.Reflection.Emit.DynamicMethod..ctor(System.String, System.Type, System.Type[], Boolean)'. at Microsoft.Scripting.Utils.Helpers.CreateDynamicMethod(String name, Type returnType, Type[] parameterTypes) at Microsoft.Linq.Expressions.Compiler.Snippets.CreateDynamicMethod(String name, Type returnType, Type[] parameterTypes) at Microsoft.Linq.Expressions.Compiler.LambdaCompiler.CreateDynamicLambdaCompiler(CompilerScope scope, String methodName, Type returnType, IList`1 paramTypes, IList`1 paramNames, Boolean closure, Boolean emitDebugSymbols, Boolean forceDynamic) at Microsoft.Linq.Expressions.Compiler.LambdaCompiler.CompileLambda(LambdaExpression lambda, Type delegateType, Boolean emitDebugSymbols, Boolean forceDynamic, MethodInfo& method) at Microsoft.Linq.Expressions.Compiler.LambdaCompiler.CompileLambda[T](LambdaExpression lambda, Boolean emitDebugSymbols) at Microsoft.Linq.Expressions.LambdaExpression.Compile[T](Boolean emitDebugSymbols) at Microsoft.Scripting.Runtime.OptimizedScriptCode.InvokeTarget(LambdaExpression code, Scope scope) at Microsoft.Scripting.SourceUnit.Execute(Scope scope, ErrorSink errorSink) at Microsoft.Scripting.Hosting.ScriptSource.Execute(ScriptScope scope) at UAP.UI.Form1.button1_Click(Object sender, EventArgs e) at System.Windows.Forms.Control.OnClick(EventArgs e) at System.Windows.Forms.Button.OnClick(EventArgs e) at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent) at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks) at System.Windows.Forms.Control.WndProc(Message& m) at System.Windows.Forms.ButtonBase.WndProc(Message& m) at System.Windows.Forms.Button.WndProc(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m) at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
IronPython requiers .NET 2.0SP1 or later to run. This exception is happening due to an overload that was added in SP1.
这篇关于IronPython的,点击一次,.NET 2.0的错误 - 的想法?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!