OK I changed from:<div><br></div><div>m_engine.Execute(&quot;import decimal&quot;);</div><div><br></div><div>to ExecuteAndWrap, and the objectOperations.Format returns:</div><div><br></div><div>&lt;System.Security.SecurityException object at 0x000000000000002B [System.Security.SecurityException: Request failed....]&gt;</div>
<div><br></div><div>Please notice I&#39;m just importing the standard decimal module. Breaking into the first SecurityException I get the stack trace below.</div><div><br></div><div>Thanks a lot!</div><div><br></div><div>
Best regards</div><div>Mello</div><div><br></div><div><div> <span class="Apple-tab-span" style="white-space:pre">        </span>mscorlib.dll!System.Security.CodeAccessSecurityEngine.ThrowSecurityException(System.Reflection.RuntimeAssembly asm, System.Security.PermissionSet granted, System.Security.PermissionSet refused, System.RuntimeMethodHandleInternal rmh, System.Security.Permissions.SecurityAction action, object demand, System.Security.IPermission permThatFailed) + 0x103 bytes<span class="Apple-tab-span" style="white-space:pre">        </span></div>
<div> <span class="Apple-tab-span" style="white-space:pre">        </span>mscorlib.dll!System.Security.CodeAccessSecurityEngine.CheckSetHelper(System.Security.PermissionSet grants, System.Security.PermissionSet refused, System.Security.PermissionSet demands, System.RuntimeMethodHandleInternal rmh, object assemblyOrString, System.Security.Permissions.SecurityAction action, bool throwException) + 0x160 bytes<span class="Apple-tab-span" style="white-space:pre">        </span></div>
<div> <span class="Apple-tab-span" style="white-space:pre">        </span>[Native to Managed Transition]<span class="Apple-tab-span" style="white-space:pre">        </span></div><div> <span class="Apple-tab-span" style="white-space:pre">        </span>[Managed to Native Transition]<span class="Apple-tab-span" style="white-space:pre">        </span></div>
<div> <span class="Apple-tab-span" style="white-space:pre">        </span>IronPython.dll!IronPython.Runtime.WeakRefTracker.CallbackInfo.CallbackInfo(object callback, object weakRef) + 0x5c bytes<span class="Apple-tab-span" style="white-space:pre">        </span></div>
<div> <span class="Apple-tab-span" style="white-space:pre">        </span>IronPython.dll!IronPython.Runtime.WeakRefTracker.ChainCallback(object callback, object weakRef) + 0x71 bytes<span class="Apple-tab-span" style="white-space:pre">        </span></div>
<div> <span class="Apple-tab-span" style="white-space:pre">        </span>IronPython.dll!IronPython.Runtime.WeakRefTracker.WeakRefTracker(object callback, object weakRef) + 0x8d bytes<span class="Apple-tab-span" style="white-space:pre">        </span></div>
<div> <span class="Apple-tab-span" style="white-space:pre">        </span>IronPython.Modules.dll!IronPython.Modules.PythonWeakRef.WeakRefHelpers.InitializeWeakRef(object self, object target, object callback) + 0xe1 bytes<span class="Apple-tab-span" style="white-space:pre">        </span></div>
<div> <span class="Apple-tab-span" style="white-space:pre">        </span>IronPython.Modules.dll!IronPython.Modules.PythonWeakRef.ref.ref(object object, object callback) + 0x46 bytes<span class="Apple-tab-span" style="white-space:pre">        </span></div>
<div> <span class="Apple-tab-span" style="white-space:pre">        </span>IronPython.Modules.dll!IronPython.Modules.PythonWeakRef.ref.ref(object object) + 0x35 bytes<span class="Apple-tab-span" style="white-space:pre">        </span></div>
<div> <span class="Apple-tab-span" style="white-space:pre">        </span>IronPython.Modules.dll!IronPython.Modules.PythonWeakRef.ref.__new__(IronPython.Runtime.CodeContext context, IronPython.Runtime.Types.PythonType cls, object object) + 0x1df bytes<span class="Apple-tab-span" style="white-space:pre">        </span></div>
<div> <span class="Apple-tab-span" style="white-space:pre">        </span>Microsoft.Dynamic.dll!Microsoft.Scripting.Interpreter.FuncCallInstruction&lt;IronPython.Runtime.CodeContext,IronPython.Runtime.Types.PythonType,object,object&gt;.Run(Microsoft.Scripting.Interpreter.InterpretedFrame frame) + 0x23a bytes<span class="Apple-tab-span" style="white-space:pre">        </span></div>
<div> <span class="Apple-tab-span" style="white-space:pre">        </span>Microsoft.Dynamic.dll!Microsoft.Scripting.Interpreter.Interpreter.Run(Microsoft.Scripting.Interpreter.InterpretedFrame frame) + 0xf0 bytes<span class="Apple-tab-span" style="white-space:pre">        </span></div>
<div> <span class="Apple-tab-span" style="white-space:pre">        </span>Microsoft.Dynamic.dll!Microsoft.Scripting.Interpreter.LightLambda.Run4&lt;System.Runtime.CompilerServices.CallSite,IronPython.Runtime.CodeContext,object,object,object&gt;(System.Runtime.CompilerServices.CallSite arg0, IronPython.Runtime.CodeContext arg1, object arg2, object arg3) + 0x1e4 bytes<span class="Apple-tab-span" style="white-space:pre">        </span></div>
<div> <span class="Apple-tab-span" style="white-space:pre">        </span>System.Core.dll!System.Dynamic.UpdateDelegates.UpdateAndExecute3&lt;IronPython.Runtime.CodeContext,object,object,object&gt;(System.Runtime.CompilerServices.CallSite site, IronPython.Runtime.CodeContext arg0, object arg1, object arg2) + 0x63a bytes<span class="Apple-tab-span" style="white-space:pre">        </span></div>
<div> <span class="Apple-tab-span" style="white-space:pre">        </span>Microsoft.Dynamic.dll!Microsoft.Scripting.Interpreter.FuncCallInstruction&lt;System.Func&lt;System.Runtime.CompilerServices.CallSite,IronPython.Runtime.CodeContext,object,object,object&gt;,System.Runtime.CompilerServices.CallSite,IronPython.Runtime.CodeContext,object,object,object&gt;.Run(Microsoft.Scripting.Interpreter.InterpretedFrame frame) + 0x3b3 bytes<span class="Apple-tab-span" style="white-space:pre">        </span></div>
<div> <span class="Apple-tab-span" style="white-space:pre">        </span>Microsoft.Dynamic.dll!Microsoft.Scripting.Interpreter.Interpreter.Run(Microsoft.Scripting.Interpreter.InterpretedFrame frame) + 0xf0 bytes<span class="Apple-tab-span" style="white-space:pre">        </span></div>
<div> <span class="Apple-tab-span" style="white-space:pre">        </span>Microsoft.Dynamic.dll!Microsoft.Scripting.Interpreter.LightLambda.Run4&lt;System.Runtime.CompilerServices.CallSite,IronPython.Runtime.CodeContext,object,object,object&gt;(System.Runtime.CompilerServices.CallSite arg0, IronPython.Runtime.CodeContext arg1, object arg2, object arg3) + 0x1e4 bytes<span class="Apple-tab-span" style="white-space:pre">        </span></div>
<div> <span class="Apple-tab-span" style="white-space:pre">        </span>IronPython.dll!IronPython.Compiler.Ast.CallExpression.Invoke1Instruction.Run(Microsoft.Scripting.Interpreter.InterpretedFrame frame) + 0x10f bytes<span class="Apple-tab-span" style="white-space:pre">        </span></div>
<div> <span class="Apple-tab-span" style="white-space:pre">        </span>Microsoft.Dynamic.dll!Microsoft.Scripting.Interpreter.Interpreter.Run(Microsoft.Scripting.Interpreter.InterpretedFrame frame) + 0xf0 bytes<span class="Apple-tab-span" style="white-space:pre">        </span></div>
<div> <span class="Apple-tab-span" style="white-space:pre">        </span>Microsoft.Dynamic.dll!Microsoft.Scripting.Interpreter.LightLambda.Run3&lt;IronPython.Runtime.PythonFunction,object,object,object&gt;(IronPython.Runtime.PythonFunction arg0, object arg1, object arg2) + 0x1b7 bytes<span class="Apple-tab-span" style="white-space:pre">        </span></div>
<div> <span class="Apple-tab-span" style="white-space:pre">        </span>IronPython.dll!IronPython.Compiler.PythonCallTargets.OriginalCallTarget2(IronPython.Runtime.PythonFunction function, object arg0, object arg1) + 0xa8 bytes<span class="Apple-tab-span" style="white-space:pre">        </span></div>
<div> <span class="Apple-tab-span" style="white-space:pre">        </span>Microsoft.Dynamic.dll!Microsoft.Scripting.Interpreter.FuncCallInstruction&lt;System.Func&lt;IronPython.Runtime.PythonFunction,object,object,object&gt;,IronPython.Runtime.PythonFunction,object,object,object&gt;.Run(Microsoft.Scripting.Interpreter.InterpretedFrame frame) + 0x2fb bytes<span class="Apple-tab-span" style="white-space:pre">        </span></div>
<div> <span class="Apple-tab-span" style="white-space:pre">        </span>Microsoft.Dynamic.dll!Microsoft.Scripting.Interpreter.Interpreter.Run(Microsoft.Scripting.Interpreter.InterpretedFrame frame) + 0xf0 bytes<span class="Apple-tab-span" style="white-space:pre">        </span></div>
<div> <span class="Apple-tab-span" style="white-space:pre">        </span>Microsoft.Dynamic.dll!Microsoft.Scripting.Interpreter.LightLambda.Run4&lt;System.Runtime.CompilerServices.CallSite,IronPython.Runtime.CodeContext,IronPython.Runtime.PythonFunction,object,object&gt;(System.Runtime.CompilerServices.CallSite arg0, IronPython.Runtime.CodeContext arg1, IronPython.Runtime.PythonFunction arg2, object arg3) + 0x1e4 bytes<span class="Apple-tab-span" style="white-space:pre">        </span></div>
<div> <span class="Apple-tab-span" style="white-space:pre">        </span>System.Core.dll!System.Dynamic.UpdateDelegates.UpdateAndExecute3&lt;IronPython.Runtime.CodeContext,IronPython.Runtime.PythonFunction,object,object&gt;(System.Runtime.CompilerServices.CallSite site, IronPython.Runtime.CodeContext arg0, IronPython.Runtime.PythonFunction arg1, object arg2) + 0x63a bytes<span class="Apple-tab-span" style="white-space:pre">        </span></div>
<div> <span class="Apple-tab-span" style="white-space:pre">        </span>IronPython.dll!IronPython.Runtime.Types.LateBoundInitBinder.FastInitSite.CallTarget(System.Runtime.CompilerServices.CallSite site, IronPython.Runtime.CodeContext context, object inst) + 0x102 bytes<span class="Apple-tab-span" style="white-space:pre">        </span></div>
<div> <span class="Apple-tab-span" style="white-space:pre">        </span>System.Core.dll!System.Dynamic.UpdateDelegates.UpdateAndExecute2&lt;IronPython.Runtime.CodeContext,object,object&gt;(System.Runtime.CompilerServices.CallSite site, IronPython.Runtime.CodeContext arg0, object arg1) + 0x5f3 bytes<span class="Apple-tab-span" style="white-space:pre">        </span></div>
<div> <span class="Apple-tab-span" style="white-space:pre">        </span>IronPython.dll!IronPython.Runtime.Types.PythonType.FastTypeSite.CallTarget(System.Runtime.CompilerServices.CallSite site, IronPython.Runtime.CodeContext context, object type) + 0x10f bytes<span class="Apple-tab-span" style="white-space:pre">        </span></div>
<div> <span class="Apple-tab-span" style="white-space:pre">        </span>System.Core.dll!System.Dynamic.UpdateDelegates.UpdateAndExecute2&lt;IronPython.Runtime.CodeContext,object,object&gt;(System.Runtime.CompilerServices.CallSite site, IronPython.Runtime.CodeContext arg0, object arg1) + 0x5f3 bytes<span class="Apple-tab-span" style="white-space:pre">        </span></div>
<div> <span class="Apple-tab-span" style="white-space:pre">        </span>Microsoft.Dynamic.dll!Microsoft.Scripting.Interpreter.FuncCallInstruction&lt;System.Func&lt;System.Runtime.CompilerServices.CallSite,IronPython.Runtime.CodeContext,object,object&gt;,System.Runtime.CompilerServices.CallSite,IronPython.Runtime.CodeContext,object,object&gt;.Run(Microsoft.Scripting.Interpreter.InterpretedFrame frame) + 0x2fb bytes<span class="Apple-tab-span" style="white-space:pre">        </span></div>
<div> <span class="Apple-tab-span" style="white-space:pre">        </span>Microsoft.Dynamic.dll!Microsoft.Scripting.Interpreter.Interpreter.Run(Microsoft.Scripting.Interpreter.InterpretedFrame frame) + 0xf0 bytes<span class="Apple-tab-span" style="white-space:pre">        </span></div>
<div> <span class="Apple-tab-span" style="white-space:pre">        </span>Microsoft.Dynamic.dll!Microsoft.Scripting.Interpreter.LightLambda.Run3&lt;System.Runtime.CompilerServices.CallSite,IronPython.Runtime.CodeContext,object,object&gt;(System.Runtime.CompilerServices.CallSite arg0, IronPython.Runtime.CodeContext arg1, object arg2) + 0x1b7 bytes<span class="Apple-tab-span" style="white-space:pre">        </span></div>
<div> <span class="Apple-tab-span" style="white-space:pre">        </span>IronPython.dll!IronPython.Compiler.Ast.CallExpression.Invoke0Instruction.Run(Microsoft.Scripting.Interpreter.InterpretedFrame frame) + 0xbd bytes<span class="Apple-tab-span" style="white-space:pre">        </span></div>
<div> <span class="Apple-tab-span" style="white-space:pre">        </span>Microsoft.Dynamic.dll!Microsoft.Scripting.Interpreter.Interpreter.Run(Microsoft.Scripting.Interpreter.InterpretedFrame frame) + 0xf0 bytes<span class="Apple-tab-span" style="white-space:pre">        </span></div>
<div> <span class="Apple-tab-span" style="white-space:pre">        </span>Microsoft.Dynamic.dll!Microsoft.Scripting.Interpreter.LightLambda.Run5&lt;IronPython.Runtime.PythonFunction,object,object,object,object,object&gt;(IronPython.Runtime.PythonFunction arg0, object arg1, object arg2, object arg3, object arg4) + 0x21a bytes<span class="Apple-tab-span" style="white-space:pre">        </span></div>
<div> <span class="Apple-tab-span" style="white-space:pre">        </span>IronPython.dll!IronPython.Compiler.PythonCallTargets.OriginalCallTarget4(IronPython.Runtime.PythonFunction function, object arg0, object arg1, object arg2, object arg3) + 0xc4 bytes<span class="Apple-tab-span" style="white-space:pre">        </span></div>
<div> <span class="Apple-tab-span" style="white-space:pre">        </span>IronPython.dll!IronPython.Runtime.PythonFunction.FunctionCaller&lt;object,string,IronPython.Runtime.PythonTuple,IronPython.Runtime.PythonDictionary&gt;.Call4(System.Runtime.CompilerServices.CallSite site, IronPython.Runtime.CodeContext context, object func, object arg0, string arg1, IronPython.Runtime.PythonTuple arg2, IronPython.Runtime.PythonDictionary arg3) + 0x11f bytes<span class="Apple-tab-span" style="white-space:pre">        </span></div>
<div> <span class="Apple-tab-span" style="white-space:pre">        </span>System.Core.dll!System.Dynamic.UpdateDelegates.UpdateAndExecute6&lt;IronPython.Runtime.CodeContext,object,object,string,IronPython.Runtime.PythonTuple,IronPython.Runtime.PythonDictionary,object&gt;(System.Runtime.CompilerServices.CallSite site, IronPython.Runtime.CodeContext arg0, object arg1, object arg2, string arg3, IronPython.Runtime.PythonTuple arg4, IronPython.Runtime.PythonDictionary arg5) + 0x70f bytes<span class="Apple-tab-span" style="white-space:pre">        </span></div>
<div> <span class="Apple-tab-span" style="white-space:pre">        </span>IronPython.dll!IronPython.Runtime.Types.PythonType.NewSite&lt;string,IronPython.Runtime.PythonTuple,IronPython.Runtime.PythonDictionary&gt;.Call(IronPython.Runtime.CodeContext context, object typeOrInstance, string arg0, IronPython.Runtime.PythonTuple arg1, IronPython.Runtime.PythonDictionary arg2) + 0x95 bytes<span class="Apple-tab-span" style="white-space:pre">        </span></div>
<div> <span class="Apple-tab-span" style="white-space:pre">        </span>IronPython.dll!IronPython.Runtime.Types.PythonType.FastTypeSite&lt;string,IronPython.Runtime.PythonTuple,IronPython.Runtime.PythonDictionary&gt;.CallTarget(System.Runtime.CompilerServices.CallSite site, IronPython.Runtime.CodeContext context, object type, string arg0, IronPython.Runtime.PythonTuple arg1, IronPython.Runtime.PythonDictionary arg2) + 0xf3 bytes<span class="Apple-tab-span" style="white-space:pre">        </span></div>
<div> <span class="Apple-tab-span" style="white-space:pre">        </span>System.Core.dll!System.Dynamic.UpdateDelegates.UpdateAndExecute5&lt;IronPython.Runtime.CodeContext,object,string,IronPython.Runtime.PythonTuple,IronPython.Runtime.PythonDictionary,object&gt;(System.Runtime.CompilerServices.CallSite site, IronPython.Runtime.CodeContext arg0, object arg1, string arg2, IronPython.Runtime.PythonTuple arg3, IronPython.Runtime.PythonDictionary arg4) + 0x6c8 bytes<span class="Apple-tab-span" style="white-space:pre">        </span></div>
<div> <span class="Apple-tab-span" style="white-space:pre">        </span>IronPython.dll!IronPython.Runtime.Operations.PythonOps.MakeClass(IronPython.Runtime.CodeContext context, string name, object[] bases, string selfNames, IronPython.Runtime.PythonDictionary vars) + 0x5ac bytes<span class="Apple-tab-span" style="white-space:pre">        </span></div>
<div> <span class="Apple-tab-span" style="white-space:pre">        </span>IronPython.dll!IronPython.Runtime.Operations.PythonOps.MakeClass(IronPython.Runtime.FunctionCode funcCode, System.Func&lt;IronPython.Runtime.CodeContext,IronPython.Runtime.CodeContext&gt; body, IronPython.Runtime.CodeContext parentContext, string name, object[] bases, string selfNames) + 0xf1 bytes<span class="Apple-tab-span" style="white-space:pre">        </span></div>
<div> <span class="Apple-tab-span" style="white-space:pre">        </span>Microsoft.Dynamic.dll!Microsoft.Scripting.Interpreter.FuncCallInstruction&lt;IronPython.Runtime.FunctionCode,System.Func&lt;IronPython.Runtime.CodeContext,IronPython.Runtime.CodeContext&gt;,IronPython.Runtime.CodeContext,string,object[],string,object&gt;.Run(Microsoft.Scripting.Interpreter.InterpretedFrame frame) + 0x483 bytes<span class="Apple-tab-span" style="white-space:pre">        </span></div>
<div> <span class="Apple-tab-span" style="white-space:pre">        </span>Microsoft.Dynamic.dll!Microsoft.Scripting.Interpreter.Interpreter.Run(Microsoft.Scripting.Interpreter.InterpretedFrame frame) + 0xf0 bytes<span class="Apple-tab-span" style="white-space:pre">        </span></div>
<div> <span class="Apple-tab-span" style="white-space:pre">        </span>Microsoft.Dynamic.dll!Microsoft.Scripting.Interpreter.LightLambda.Run1&lt;IronPython.Runtime.FunctionCode,object&gt;(IronPython.Runtime.FunctionCode arg0) + 0x15e bytes<span class="Apple-tab-span" style="white-space:pre">        </span></div>
<div> <span class="Apple-tab-span" style="white-space:pre">        </span>IronPython.dll!IronPython.Compiler.RuntimeScriptCode.InvokeTarget(Microsoft.Scripting.Runtime.Scope scope) + 0x1c8 bytes<span class="Apple-tab-span" style="white-space:pre">        </span></div>
<div> <span class="Apple-tab-span" style="white-space:pre">        </span>IronPython.dll!IronPython.Compiler.RuntimeScriptCode.Run(Microsoft.Scripting.Runtime.Scope scope) + 0x32 bytes<span class="Apple-tab-span" style="white-space:pre">        </span></div>
<div> <span class="Apple-tab-span" style="white-space:pre">        </span>IronPython.dll!IronPython.Runtime.PythonContext.InitializeModule(string fileName, IronPython.Runtime.ModuleContext moduleContext, Microsoft.Scripting.ScriptCode scriptCode, IronPython.Runtime.ModuleOptions options) + 0x288 bytes<span class="Apple-tab-span" style="white-space:pre">        </span></div>
<div> <span class="Apple-tab-span" style="white-space:pre">        </span>IronPython.dll!IronPython.Runtime.PythonContext.CompileModule(string fileName, string moduleName, Microsoft.Scripting.SourceUnit sourceCode, IronPython.Runtime.ModuleOptions options, out Microsoft.Scripting.ScriptCode scriptCode) + 0x1b6 bytes<span class="Apple-tab-span" style="white-space:pre">        </span></div>
<div> <span class="Apple-tab-span" style="white-space:pre">        </span>IronPython.dll!IronPython.Runtime.PythonContext.CompileModule(string fileName, string moduleName, Microsoft.Scripting.SourceUnit sourceCode, IronPython.Runtime.ModuleOptions options) + 0x61 bytes<span class="Apple-tab-span" style="white-space:pre">        </span></div>
<div> <span class="Apple-tab-span" style="white-space:pre">        </span>IronPython.dll!IronPython.Runtime.Importer.LoadFromSourceUnit(IronPython.Runtime.CodeContext context, Microsoft.Scripting.SourceUnit sourceCode, string name, string path) + 0x65 bytes<span class="Apple-tab-span" style="white-space:pre">        </span></div>
<div> <span class="Apple-tab-span" style="white-space:pre">        </span>IronPython.dll!IronPython.Runtime.Importer.LoadModuleFromSource(IronPython.Runtime.CodeContext context, string name, string path) + 0x1b0 bytes<span class="Apple-tab-span" style="white-space:pre">        </span></div>
<div> <span class="Apple-tab-span" style="white-space:pre">        </span>IronPython.dll!IronPython.Runtime.Importer.LoadFromDisk(IronPython.Runtime.CodeContext context, string name, string fullName, string str) + 0x13e bytes<span class="Apple-tab-span" style="white-space:pre">        </span></div>
<div> <span class="Apple-tab-span" style="white-space:pre">        </span>IronPython.dll!IronPython.Runtime.Importer.ImportFromPathHook(IronPython.Runtime.CodeContext context, string name, string fullName, IronPython.Runtime.List path, System.Func&lt;IronPython.Runtime.CodeContext,string,string,string,object&gt; defaultLoader) + 0x29a bytes<span class="Apple-tab-span" style="white-space:pre">        </span></div>
<div> <span class="Apple-tab-span" style="white-space:pre">        </span>IronPython.dll!IronPython.Runtime.Importer.ImportFromPath(IronPython.Runtime.CodeContext context, string name, string fullName, IronPython.Runtime.List path) + 0xc4 bytes<span class="Apple-tab-span" style="white-space:pre">        </span></div>
<div> <span class="Apple-tab-span" style="white-space:pre">        </span>IronPython.dll!IronPython.Runtime.Importer.ImportTopAbsolute(IronPython.Runtime.CodeContext context, string name) + 0x1ff bytes<span class="Apple-tab-span" style="white-space:pre">        </span></div>
<div> <span class="Apple-tab-span" style="white-space:pre">        </span>IronPython.dll!IronPython.Runtime.Importer.ImportModule(IronPython.Runtime.CodeContext context, object globals, string modName, bool bottom, int level) + 0x962 bytes<span class="Apple-tab-span" style="white-space:pre">        </span></div>
<div> <span class="Apple-tab-span" style="white-space:pre">        </span>IronPython.dll!IronPython.Modules.Builtin.__import__(IronPython.Runtime.CodeContext context, string name, object globals, object locals, object fromlist, int level) + 0x1a5 bytes<span class="Apple-tab-span" style="white-space:pre">        </span></div>
<div> <span class="Apple-tab-span" style="white-space:pre">        </span>Microsoft.Dynamic.dll!Microsoft.Scripting.Interpreter.FuncCallInstruction&lt;IronPython.Runtime.CodeContext,string,object,object,object,int,object&gt;.Run(Microsoft.Scripting.Interpreter.InterpretedFrame frame) + 0x45c bytes<span class="Apple-tab-span" style="white-space:pre">        </span></div>
<div> <span class="Apple-tab-span" style="white-space:pre">        </span>Microsoft.Dynamic.dll!Microsoft.Scripting.Interpreter.Interpreter.Run(Microsoft.Scripting.Interpreter.InterpretedFrame frame) + 0xf0 bytes<span class="Apple-tab-span" style="white-space:pre">        </span></div>
<div> <span class="Apple-tab-span" style="white-space:pre">        </span>Microsoft.Dynamic.dll!Microsoft.Scripting.Interpreter.LightLambda.Run7&lt;System.Runtime.CompilerServices.CallSite,IronPython.Runtime.CodeContext,object,string,IronPython.Runtime.PythonDictionary,IronPython.Runtime.PythonDictionary,IronPython.Runtime.PythonTuple,object&gt;(System.Runtime.CompilerServices.CallSite arg0, IronPython.Runtime.CodeContext arg1, object arg2, string arg3, IronPython.Runtime.PythonDictionary arg4, IronPython.Runtime.PythonDictionary arg5, IronPython.Runtime.PythonTuple arg6) + 0x280 bytes<span class="Apple-tab-span" style="white-space:pre">        </span></div>
<div> <span class="Apple-tab-span" style="white-space:pre">        </span>IronPython.dll!IronPython.Runtime.Importer.ImportLightThrow(IronPython.Runtime.CodeContext context, string fullName, IronPython.Runtime.PythonTuple from, int level) + 0x178 bytes<span class="Apple-tab-span" style="white-space:pre">        </span></div>
<div> <span class="Apple-tab-span" style="white-space:pre">        </span>IronPython.dll!IronPython.Runtime.Operations.PythonOps.ImportTop(IronPython.Runtime.CodeContext context, string fullName, int level) + 0x3f bytes<span class="Apple-tab-span" style="white-space:pre">        </span></div>
<div> <span class="Apple-tab-span" style="white-space:pre">        </span>Microsoft.Dynamic.dll!Microsoft.Scripting.Interpreter.FuncCallInstruction&lt;IronPython.Runtime.CodeContext,string,int,object&gt;.Run(Microsoft.Scripting.Interpreter.InterpretedFrame frame) + 0x212 bytes<span class="Apple-tab-span" style="white-space:pre">        </span></div>
<div> <span class="Apple-tab-span" style="white-space:pre">        </span>Microsoft.Dynamic.dll!Microsoft.Scripting.Interpreter.Interpreter.Run(Microsoft.Scripting.Interpreter.InterpretedFrame frame) + 0xf0 bytes<span class="Apple-tab-span" style="white-space:pre">        </span></div>
<div> <span class="Apple-tab-span" style="white-space:pre">        </span>Microsoft.Dynamic.dll!Microsoft.Scripting.Interpreter.LightLambda.Run1&lt;IronPython.Runtime.FunctionCode,object&gt;(IronPython.Runtime.FunctionCode arg0) + 0x15e bytes<span class="Apple-tab-span" style="white-space:pre">        </span></div>
<div> <span class="Apple-tab-span" style="white-space:pre">        </span>IronPython.dll!IronPython.Compiler.RuntimeScriptCode.InvokeTarget(Microsoft.Scripting.Runtime.Scope scope) + 0x1c8 bytes<span class="Apple-tab-span" style="white-space:pre">        </span></div>
<div> <span class="Apple-tab-span" style="white-space:pre">        </span>IronPython.dll!IronPython.Compiler.RuntimeScriptCode.Run(Microsoft.Scripting.Runtime.Scope scope) + 0x32 bytes<span class="Apple-tab-span" style="white-space:pre">        </span></div>
<div> <span class="Apple-tab-span" style="white-space:pre">        </span>IronPython.dll!IronPython.Runtime.PythonContext.InitializeModule(string fileName, IronPython.Runtime.ModuleContext moduleContext, Microsoft.Scripting.ScriptCode scriptCode, IronPython.Runtime.ModuleOptions options) + 0x288 bytes<span class="Apple-tab-span" style="white-space:pre">        </span></div>
<div> <span class="Apple-tab-span" style="white-space:pre">        </span>IronPython.dll!IronPython.Runtime.PythonContext.CompileModule(string fileName, string moduleName, Microsoft.Scripting.SourceUnit sourceCode, IronPython.Runtime.ModuleOptions options, out Microsoft.Scripting.ScriptCode scriptCode) + 0x1b6 bytes<span class="Apple-tab-span" style="white-space:pre">        </span></div>
<div> <span class="Apple-tab-span" style="white-space:pre">        </span>IronPython.dll!IronPython.Runtime.PythonContext.CompileModule(string fileName, string moduleName, Microsoft.Scripting.SourceUnit sourceCode, IronPython.Runtime.ModuleOptions options) + 0x61 bytes<span class="Apple-tab-span" style="white-space:pre">        </span></div>
<div> <span class="Apple-tab-span" style="white-space:pre">        </span>IronPython.dll!IronPython.Runtime.Importer.LoadFromSourceUnit(IronPython.Runtime.CodeContext context, Microsoft.Scripting.SourceUnit sourceCode, string name, string path) + 0x65 bytes<span class="Apple-tab-span" style="white-space:pre">        </span></div>
<div> <span class="Apple-tab-span" style="white-space:pre">        </span>IronPython.dll!IronPython.Runtime.Importer.LoadModuleFromSource(IronPython.Runtime.CodeContext context, string name, string path) + 0x1b0 bytes<span class="Apple-tab-span" style="white-space:pre">        </span></div>
<div> <span class="Apple-tab-span" style="white-space:pre">        </span>IronPython.dll!IronPython.Runtime.Importer.LoadFromDisk(IronPython.Runtime.CodeContext context, string name, string fullName, string str) + 0x13e bytes<span class="Apple-tab-span" style="white-space:pre">        </span></div>
<div> <span class="Apple-tab-span" style="white-space:pre">        </span>IronPython.dll!IronPython.Runtime.Importer.ImportFromPathHook(IronPython.Runtime.CodeContext context, string name, string fullName, IronPython.Runtime.List path, System.Func&lt;IronPython.Runtime.CodeContext,string,string,string,object&gt; defaultLoader) + 0x29a bytes<span class="Apple-tab-span" style="white-space:pre">        </span></div>
<div> <span class="Apple-tab-span" style="white-space:pre">        </span>IronPython.dll!IronPython.Runtime.Importer.ImportFromPath(IronPython.Runtime.CodeContext context, string name, string fullName, IronPython.Runtime.List path) + 0xc4 bytes<span class="Apple-tab-span" style="white-space:pre">        </span></div>
<div> <span class="Apple-tab-span" style="white-space:pre">        </span>IronPython.dll!IronPython.Runtime.Importer.ImportTopAbsolute(IronPython.Runtime.CodeContext context, string name) + 0x1ff bytes<span class="Apple-tab-span" style="white-space:pre">        </span></div>
<div> <span class="Apple-tab-span" style="white-space:pre">        </span>IronPython.dll!IronPython.Runtime.Importer.ImportModule(IronPython.Runtime.CodeContext context, object globals, string modName, bool bottom, int level) + 0x962 bytes<span class="Apple-tab-span" style="white-space:pre">        </span></div>
<div> <span class="Apple-tab-span" style="white-space:pre">        </span>IronPython.dll!IronPython.Modules.Builtin.__import__(IronPython.Runtime.CodeContext context, string name, object globals, object locals, object fromlist, int level) + 0x1a5 bytes<span class="Apple-tab-span" style="white-space:pre">        </span></div>
<div> <span class="Apple-tab-span" style="white-space:pre">        </span>Microsoft.Dynamic.dll!Microsoft.Scripting.Interpreter.FuncCallInstruction&lt;IronPython.Runtime.CodeContext,string,object,object,object,int,object&gt;.Run(Microsoft.Scripting.Interpreter.InterpretedFrame frame) + 0x45c bytes<span class="Apple-tab-span" style="white-space:pre">        </span></div>
<div> <span class="Apple-tab-span" style="white-space:pre">        </span>Microsoft.Dynamic.dll!Microsoft.Scripting.Interpreter.Interpreter.Run(Microsoft.Scripting.Interpreter.InterpretedFrame frame) + 0xf0 bytes<span class="Apple-tab-span" style="white-space:pre">        </span></div>
<div> <span class="Apple-tab-span" style="white-space:pre">        </span>Microsoft.Dynamic.dll!Microsoft.Scripting.Interpreter.LightLambda.Run7&lt;System.Runtime.CompilerServices.CallSite,IronPython.Runtime.CodeContext,object,string,IronPython.Runtime.PythonDictionary,IronPython.Runtime.PythonDictionary,IronPython.Runtime.PythonTuple,object&gt;(System.Runtime.CompilerServices.CallSite arg0, IronPython.Runtime.CodeContext arg1, object arg2, string arg3, IronPython.Runtime.PythonDictionary arg4, IronPython.Runtime.PythonDictionary arg5, IronPython.Runtime.PythonTuple arg6) + 0x280 bytes<span class="Apple-tab-span" style="white-space:pre">        </span></div>
<div> <span class="Apple-tab-span" style="white-space:pre">        </span>IronPython.dll!IronPython.Runtime.Importer.ImportLightThrow(IronPython.Runtime.CodeContext context, string fullName, IronPython.Runtime.PythonTuple from, int level) + 0x178 bytes<span class="Apple-tab-span" style="white-space:pre">        </span></div>
<div> <span class="Apple-tab-span" style="white-space:pre">        </span>IronPython.dll!IronPython.Runtime.Operations.PythonOps.ImportTop(IronPython.Runtime.CodeContext context, string fullName, int level) + 0x3f bytes<span class="Apple-tab-span" style="white-space:pre">        </span></div>
<div> <span class="Apple-tab-span" style="white-space:pre">        </span>Microsoft.Dynamic.dll!Microsoft.Scripting.Interpreter.FuncCallInstruction&lt;IronPython.Runtime.CodeContext,string,int,object&gt;.Run(Microsoft.Scripting.Interpreter.InterpretedFrame frame) + 0x212 bytes<span class="Apple-tab-span" style="white-space:pre">        </span></div>
<div> <span class="Apple-tab-span" style="white-space:pre">        </span>Microsoft.Dynamic.dll!Microsoft.Scripting.Interpreter.Interpreter.Run(Microsoft.Scripting.Interpreter.InterpretedFrame frame) + 0xf0 bytes<span class="Apple-tab-span" style="white-space:pre">        </span></div>
<div> <span class="Apple-tab-span" style="white-space:pre">        </span>Microsoft.Dynamic.dll!Microsoft.Scripting.Interpreter.LightLambda.Run1&lt;IronPython.Runtime.FunctionCode,object&gt;(IronPython.Runtime.FunctionCode arg0) + 0x15e bytes<span class="Apple-tab-span" style="white-space:pre">        </span></div>
<div> <span class="Apple-tab-span" style="white-space:pre">        </span>IronPython.dll!IronPython.Compiler.RuntimeScriptCode.InvokeTarget(Microsoft.Scripting.Runtime.Scope scope) + 0x1c8 bytes<span class="Apple-tab-span" style="white-space:pre">        </span></div>
<div> <span class="Apple-tab-span" style="white-space:pre">        </span>IronPython.dll!IronPython.Compiler.RuntimeScriptCode.Run(Microsoft.Scripting.Runtime.Scope scope) + 0x32 bytes<span class="Apple-tab-span" style="white-space:pre">        </span></div>
<div> <span class="Apple-tab-span" style="white-space:pre">        </span>IronPython.dll!IronPython.Runtime.PythonContext.InitializeModule(string fileName, IronPython.Runtime.ModuleContext moduleContext, Microsoft.Scripting.ScriptCode scriptCode, IronPython.Runtime.ModuleOptions options) + 0x288 bytes<span class="Apple-tab-span" style="white-space:pre">        </span></div>
<div> <span class="Apple-tab-span" style="white-space:pre">        </span>IronPython.dll!IronPython.Runtime.PythonContext.CompileModule(string fileName, string moduleName, Microsoft.Scripting.SourceUnit sourceCode, IronPython.Runtime.ModuleOptions options, out Microsoft.Scripting.ScriptCode scriptCode) + 0x1b6 bytes<span class="Apple-tab-span" style="white-space:pre">        </span></div>
<div> <span class="Apple-tab-span" style="white-space:pre">        </span>IronPython.dll!IronPython.Runtime.PythonContext.CompileModule(string fileName, string moduleName, Microsoft.Scripting.SourceUnit sourceCode, IronPython.Runtime.ModuleOptions options) + 0x61 bytes<span class="Apple-tab-span" style="white-space:pre">        </span></div>
<div> <span class="Apple-tab-span" style="white-space:pre">        </span>IronPython.dll!IronPython.Runtime.Importer.LoadFromSourceUnit(IronPython.Runtime.CodeContext context, Microsoft.Scripting.SourceUnit sourceCode, string name, string path) + 0x65 bytes<span class="Apple-tab-span" style="white-space:pre">        </span></div>
<div> <span class="Apple-tab-span" style="white-space:pre">        </span>IronPython.dll!IronPython.Runtime.Importer.LoadModuleFromSource(IronPython.Runtime.CodeContext context, string name, string path) + 0x1b0 bytes<span class="Apple-tab-span" style="white-space:pre">        </span></div>
<div> <span class="Apple-tab-span" style="white-space:pre">        </span>IronPython.dll!IronPython.Runtime.Importer.LoadFromDisk(IronPython.Runtime.CodeContext context, string name, string fullName, string str) + 0x13e bytes<span class="Apple-tab-span" style="white-space:pre">        </span></div>
<div> <span class="Apple-tab-span" style="white-space:pre">        </span>IronPython.dll!IronPython.Runtime.Importer.ImportFromPathHook(IronPython.Runtime.CodeContext context, string name, string fullName, IronPython.Runtime.List path, System.Func&lt;IronPython.Runtime.CodeContext,string,string,string,object&gt; defaultLoader) + 0x29a bytes<span class="Apple-tab-span" style="white-space:pre">        </span></div>
<div> <span class="Apple-tab-span" style="white-space:pre">        </span>IronPython.dll!IronPython.Runtime.Importer.ImportFromPath(IronPython.Runtime.CodeContext context, string name, string fullName, IronPython.Runtime.List path) + 0xc4 bytes<span class="Apple-tab-span" style="white-space:pre">        </span></div>
<div> <span class="Apple-tab-span" style="white-space:pre">        </span>IronPython.dll!IronPython.Runtime.Importer.ImportTopAbsolute(IronPython.Runtime.CodeContext context, string name) + 0x1ff bytes<span class="Apple-tab-span" style="white-space:pre">        </span></div>
<div> <span class="Apple-tab-span" style="white-space:pre">        </span>IronPython.dll!IronPython.Runtime.Importer.ImportModule(IronPython.Runtime.CodeContext context, object globals, string modName, bool bottom, int level) + 0x962 bytes<span class="Apple-tab-span" style="white-space:pre">        </span></div>
<div> <span class="Apple-tab-span" style="white-space:pre">        </span>IronPython.dll!IronPython.Modules.Builtin.__import__(IronPython.Runtime.CodeContext context, string name, object globals, object locals, object fromlist, int level) + 0x1a5 bytes<span class="Apple-tab-span" style="white-space:pre">        </span></div>
<div> <span class="Apple-tab-span" style="white-space:pre">        </span>Microsoft.Dynamic.dll!Microsoft.Scripting.Interpreter.FuncCallInstruction&lt;IronPython.Runtime.CodeContext,string,object,object,object,int,object&gt;.Run(Microsoft.Scripting.Interpreter.InterpretedFrame frame) + 0x45c bytes<span class="Apple-tab-span" style="white-space:pre">        </span></div>
<div> <span class="Apple-tab-span" style="white-space:pre">        </span>Microsoft.Dynamic.dll!Microsoft.Scripting.Interpreter.Interpreter.Run(Microsoft.Scripting.Interpreter.InterpretedFrame frame) + 0xf0 bytes<span class="Apple-tab-span" style="white-space:pre">        </span></div>
<div> <span class="Apple-tab-span" style="white-space:pre">        </span>Microsoft.Dynamic.dll!Microsoft.Scripting.Interpreter.LightLambda.Run7&lt;System.Runtime.CompilerServices.CallSite,IronPython.Runtime.CodeContext,object,string,IronPython.Runtime.PythonDictionary,IronPython.Runtime.PythonDictionary,IronPython.Runtime.PythonTuple,object&gt;(System.Runtime.CompilerServices.CallSite arg0, IronPython.Runtime.CodeContext arg1, object arg2, string arg3, IronPython.Runtime.PythonDictionary arg4, IronPython.Runtime.PythonDictionary arg5, IronPython.Runtime.PythonTuple arg6) + 0x280 bytes<span class="Apple-tab-span" style="white-space:pre">        </span></div>
<div> <span class="Apple-tab-span" style="white-space:pre">        </span>IronPython.dll!IronPython.Runtime.Importer.ImportLightThrow(IronPython.Runtime.CodeContext context, string fullName, IronPython.Runtime.PythonTuple from, int level) + 0x178 bytes<span class="Apple-tab-span" style="white-space:pre">        </span></div>
<div> <span class="Apple-tab-span" style="white-space:pre">        </span>IronPython.dll!IronPython.Runtime.Operations.PythonOps.ImportTop(IronPython.Runtime.CodeContext context, string fullName, int level) + 0x3f bytes<span class="Apple-tab-span" style="white-space:pre">        </span></div>
<div> <span class="Apple-tab-span" style="white-space:pre">        </span>Microsoft.Dynamic.dll!Microsoft.Scripting.Interpreter.FuncCallInstruction&lt;IronPython.Runtime.CodeContext,string,int,object&gt;.Run(Microsoft.Scripting.Interpreter.InterpretedFrame frame) + 0x212 bytes<span class="Apple-tab-span" style="white-space:pre">        </span></div>
<div> <span class="Apple-tab-span" style="white-space:pre">        </span>Microsoft.Dynamic.dll!Microsoft.Scripting.Interpreter.Interpreter.Run(Microsoft.Scripting.Interpreter.InterpretedFrame frame) + 0xf0 bytes<span class="Apple-tab-span" style="white-space:pre">        </span></div>
<div> <span class="Apple-tab-span" style="white-space:pre">        </span>Microsoft.Dynamic.dll!Microsoft.Scripting.Interpreter.LightLambda.Run1&lt;IronPython.Runtime.FunctionCode,object&gt;(IronPython.Runtime.FunctionCode arg0) + 0x15e bytes<span class="Apple-tab-span" style="white-space:pre">        </span></div>
<div> <span class="Apple-tab-span" style="white-space:pre">        </span>IronPython.dll!IronPython.Compiler.RuntimeScriptCode.InvokeTarget(Microsoft.Scripting.Runtime.Scope scope) + 0x1c8 bytes<span class="Apple-tab-span" style="white-space:pre">        </span></div>
<div> <span class="Apple-tab-span" style="white-space:pre">        </span>IronPython.dll!IronPython.Compiler.RuntimeScriptCode.Run(Microsoft.Scripting.Runtime.Scope scope) + 0x32 bytes<span class="Apple-tab-span" style="white-space:pre">        </span></div>
<div> <span class="Apple-tab-span" style="white-space:pre">        </span>IronPython.dll!IronPython.Runtime.PythonContext.InitializeModule(string fileName, IronPython.Runtime.ModuleContext moduleContext, Microsoft.Scripting.ScriptCode scriptCode, IronPython.Runtime.ModuleOptions options) + 0x288 bytes<span class="Apple-tab-span" style="white-space:pre">        </span></div>
<div> <span class="Apple-tab-span" style="white-space:pre">        </span>IronPython.dll!IronPython.Runtime.PythonContext.CompileModule(string fileName, string moduleName, Microsoft.Scripting.SourceUnit sourceCode, IronPython.Runtime.ModuleOptions options, out Microsoft.Scripting.ScriptCode scriptCode) + 0x1b6 bytes<span class="Apple-tab-span" style="white-space:pre">        </span></div>
<div> <span class="Apple-tab-span" style="white-space:pre">        </span>IronPython.dll!IronPython.Runtime.PythonContext.CompileModule(string fileName, string moduleName, Microsoft.Scripting.SourceUnit sourceCode, IronPython.Runtime.ModuleOptions options) + 0x61 bytes<span class="Apple-tab-span" style="white-space:pre">        </span></div>
<div> <span class="Apple-tab-span" style="white-space:pre">        </span>IronPython.dll!IronPython.Runtime.Importer.LoadFromSourceUnit(IronPython.Runtime.CodeContext context, Microsoft.Scripting.SourceUnit sourceCode, string name, string path) + 0x65 bytes<span class="Apple-tab-span" style="white-space:pre">        </span></div>
<div> <span class="Apple-tab-span" style="white-space:pre">        </span>IronPython.dll!IronPython.Runtime.Importer.LoadModuleFromSource(IronPython.Runtime.CodeContext context, string name, string path) + 0x1b0 bytes<span class="Apple-tab-span" style="white-space:pre">        </span></div>
<div> <span class="Apple-tab-span" style="white-space:pre">        </span>IronPython.dll!IronPython.Runtime.Importer.LoadFromDisk(IronPython.Runtime.CodeContext context, string name, string fullName, string str) + 0x13e bytes<span class="Apple-tab-span" style="white-space:pre">        </span></div>
<div> <span class="Apple-tab-span" style="white-space:pre">        </span>IronPython.dll!IronPython.Runtime.Importer.ImportFromPathHook(IronPython.Runtime.CodeContext context, string name, string fullName, IronPython.Runtime.List path, System.Func&lt;IronPython.Runtime.CodeContext,string,string,string,object&gt; defaultLoader) + 0x29a bytes<span class="Apple-tab-span" style="white-space:pre">        </span></div>
<div> <span class="Apple-tab-span" style="white-space:pre">        </span>IronPython.dll!IronPython.Runtime.Importer.ImportFromPath(IronPython.Runtime.CodeContext context, string name, string fullName, IronPython.Runtime.List path) + 0xc4 bytes<span class="Apple-tab-span" style="white-space:pre">        </span></div>
<div> <span class="Apple-tab-span" style="white-space:pre">        </span>IronPython.dll!IronPython.Runtime.Importer.ImportTopAbsolute(IronPython.Runtime.CodeContext context, string name) + 0x1ff bytes<span class="Apple-tab-span" style="white-space:pre">        </span></div>
<div> <span class="Apple-tab-span" style="white-space:pre">        </span>IronPython.dll!IronPython.Runtime.Importer.ImportModule(IronPython.Runtime.CodeContext context, object globals, string modName, bool bottom, int level) + 0x962 bytes<span class="Apple-tab-span" style="white-space:pre">        </span></div>
<div> <span class="Apple-tab-span" style="white-space:pre">        </span>IronPython.dll!IronPython.Modules.Builtin.__import__(IronPython.Runtime.CodeContext context, string name, object globals, object locals, object fromlist, int level) + 0x1a5 bytes<span class="Apple-tab-span" style="white-space:pre">        </span></div>
<div> <span class="Apple-tab-span" style="white-space:pre">        </span>Microsoft.Dynamic.dll!Microsoft.Scripting.Interpreter.FuncCallInstruction&lt;IronPython.Runtime.CodeContext,string,object,object,object,int,object&gt;.Run(Microsoft.Scripting.Interpreter.InterpretedFrame frame) + 0x45c bytes<span class="Apple-tab-span" style="white-space:pre">        </span></div>
<div> <span class="Apple-tab-span" style="white-space:pre">        </span>Microsoft.Dynamic.dll!Microsoft.Scripting.Interpreter.Interpreter.Run(Microsoft.Scripting.Interpreter.InterpretedFrame frame) + 0xf0 bytes<span class="Apple-tab-span" style="white-space:pre">        </span></div>
<div> <span class="Apple-tab-span" style="white-space:pre">        </span>Microsoft.Dynamic.dll!Microsoft.Scripting.Interpreter.LightLambda.Run7&lt;System.Runtime.CompilerServices.CallSite,IronPython.Runtime.CodeContext,object,string,IronPython.Runtime.PythonDictionary,IronPython.Runtime.PythonDictionary,IronPython.Runtime.PythonTuple,object&gt;(System.Runtime.CompilerServices.CallSite arg0, IronPython.Runtime.CodeContext arg1, object arg2, string arg3, IronPython.Runtime.PythonDictionary arg4, IronPython.Runtime.PythonDictionary arg5, IronPython.Runtime.PythonTuple arg6) + 0x280 bytes<span class="Apple-tab-span" style="white-space:pre">        </span></div>
<div> <span class="Apple-tab-span" style="white-space:pre">        </span>IronPython.dll!IronPython.Runtime.Importer.ImportLightThrow(IronPython.Runtime.CodeContext context, string fullName, IronPython.Runtime.PythonTuple from, int level) + 0x178 bytes<span class="Apple-tab-span" style="white-space:pre">        </span></div>
<div> <span class="Apple-tab-span" style="white-space:pre">        </span>IronPython.dll!IronPython.Runtime.Operations.PythonOps.ImportBottom(IronPython.Runtime.CodeContext context, string fullName, int level) + 0x64 bytes<span class="Apple-tab-span" style="white-space:pre">        </span></div>
<div> <span class="Apple-tab-span" style="white-space:pre">        </span>Microsoft.Dynamic.dll!Microsoft.Scripting.Interpreter.FuncCallInstruction&lt;IronPython.Runtime.CodeContext,string,int,object&gt;.Run(Microsoft.Scripting.Interpreter.InterpretedFrame frame) + 0x212 bytes<span class="Apple-tab-span" style="white-space:pre">        </span></div>
<div> <span class="Apple-tab-span" style="white-space:pre">        </span>Microsoft.Dynamic.dll!Microsoft.Scripting.Interpreter.Interpreter.Run(Microsoft.Scripting.Interpreter.InterpretedFrame frame) + 0xf0 bytes<span class="Apple-tab-span" style="white-space:pre">        </span></div>
<div> <span class="Apple-tab-span" style="white-space:pre">        </span>Microsoft.Dynamic.dll!Microsoft.Scripting.Interpreter.LightLambda.Run1&lt;IronPython.Runtime.FunctionCode,object&gt;(IronPython.Runtime.FunctionCode arg0) + 0x15e bytes<span class="Apple-tab-span" style="white-space:pre">        </span></div>
<div> <span class="Apple-tab-span" style="white-space:pre">        </span>IronPython.dll!IronPython.Compiler.RuntimeScriptCode.InvokeTarget(Microsoft.Scripting.Runtime.Scope scope) + 0x1c8 bytes<span class="Apple-tab-span" style="white-space:pre">        </span></div>
<div> <span class="Apple-tab-span" style="white-space:pre">        </span>IronPython.dll!IronPython.Compiler.RuntimeScriptCode.Run(Microsoft.Scripting.Runtime.Scope scope) + 0x32 bytes<span class="Apple-tab-span" style="white-space:pre">        </span></div>
<div> <span class="Apple-tab-span" style="white-space:pre">        </span>IronPython.dll!IronPython.Runtime.PythonContext.InitializeModule(string fileName, IronPython.Runtime.ModuleContext moduleContext, Microsoft.Scripting.ScriptCode scriptCode, IronPython.Runtime.ModuleOptions options) + 0x288 bytes<span class="Apple-tab-span" style="white-space:pre">        </span></div>
<div> <span class="Apple-tab-span" style="white-space:pre">        </span>IronPython.dll!IronPython.Runtime.PythonContext.CompileModule(string fileName, string moduleName, Microsoft.Scripting.SourceUnit sourceCode, IronPython.Runtime.ModuleOptions options, out Microsoft.Scripting.ScriptCode scriptCode) + 0x1b6 bytes<span class="Apple-tab-span" style="white-space:pre">        </span></div>
<div> <span class="Apple-tab-span" style="white-space:pre">        </span>IronPython.dll!IronPython.Runtime.PythonContext.CompileModule(string fileName, string moduleName, Microsoft.Scripting.SourceUnit sourceCode, IronPython.Runtime.ModuleOptions options) + 0x61 bytes<span class="Apple-tab-span" style="white-space:pre">        </span></div>
<div> <span class="Apple-tab-span" style="white-space:pre">        </span>IronPython.dll!IronPython.Runtime.Importer.LoadFromSourceUnit(IronPython.Runtime.CodeContext context, Microsoft.Scripting.SourceUnit sourceCode, string name, string path) + 0x65 bytes<span class="Apple-tab-span" style="white-space:pre">        </span></div>
<div> <span class="Apple-tab-span" style="white-space:pre">        </span>IronPython.dll!IronPython.Runtime.Importer.LoadModuleFromSource(IronPython.Runtime.CodeContext context, string name, string path) + 0x1b0 bytes<span class="Apple-tab-span" style="white-space:pre">        </span></div>
<div> <span class="Apple-tab-span" style="white-space:pre">        </span>IronPython.dll!IronPython.Runtime.Importer.LoadFromDisk(IronPython.Runtime.CodeContext context, string name, string fullName, string str) + 0x13e bytes<span class="Apple-tab-span" style="white-space:pre">        </span></div>
<div> <span class="Apple-tab-span" style="white-space:pre">        </span>IronPython.dll!IronPython.Runtime.Importer.ImportFromPathHook(IronPython.Runtime.CodeContext context, string name, string fullName, IronPython.Runtime.List path, System.Func&lt;IronPython.Runtime.CodeContext,string,string,string,object&gt; defaultLoader) + 0x29a bytes<span class="Apple-tab-span" style="white-space:pre">        </span></div>
<div> <span class="Apple-tab-span" style="white-space:pre">        </span>IronPython.dll!IronPython.Runtime.Importer.ImportFromPath(IronPython.Runtime.CodeContext context, string name, string fullName, IronPython.Runtime.List path) + 0xc4 bytes<span class="Apple-tab-span" style="white-space:pre">        </span></div>
<div> <span class="Apple-tab-span" style="white-space:pre">        </span>IronPython.dll!IronPython.Runtime.Importer.ImportTopAbsolute(IronPython.Runtime.CodeContext context, string name) + 0x1ff bytes<span class="Apple-tab-span" style="white-space:pre">        </span></div>
<div> <span class="Apple-tab-span" style="white-space:pre">        </span>IronPython.dll!IronPython.Runtime.Importer.ImportModule(IronPython.Runtime.CodeContext context, object globals, string modName, bool bottom, int level) + 0x962 bytes<span class="Apple-tab-span" style="white-space:pre">        </span></div>
<div> <span class="Apple-tab-span" style="white-space:pre">        </span>IronPython.dll!IronPython.Modules.Builtin.__import__(IronPython.Runtime.CodeContext context, string name, object globals, object locals, object fromlist, int level) + 0x1a5 bytes<span class="Apple-tab-span" style="white-space:pre">        </span></div>
<div> <span class="Apple-tab-span" style="white-space:pre">        </span>Microsoft.Dynamic.dll!Microsoft.Scripting.Interpreter.FuncCallInstruction&lt;IronPython.Runtime.CodeContext,string,object,object,object,int,object&gt;.Run(Microsoft.Scripting.Interpreter.InterpretedFrame frame) + 0x45c bytes<span class="Apple-tab-span" style="white-space:pre">        </span></div>
<div> <span class="Apple-tab-span" style="white-space:pre">        </span>Microsoft.Dynamic.dll!Microsoft.Scripting.Interpreter.Interpreter.Run(Microsoft.Scripting.Interpreter.InterpretedFrame frame) + 0xf0 bytes<span class="Apple-tab-span" style="white-space:pre">        </span></div>
<div> <span class="Apple-tab-span" style="white-space:pre">        </span>Microsoft.Dynamic.dll!Microsoft.Scripting.Interpreter.LightLambda.Run7&lt;System.Runtime.CompilerServices.CallSite,IronPython.Runtime.CodeContext,object,string,IronPython.Runtime.PythonDictionary,IronPython.Runtime.PythonDictionary,IronPython.Runtime.PythonTuple,object&gt;(System.Runtime.CompilerServices.CallSite arg0, IronPython.Runtime.CodeContext arg1, object arg2, string arg3, IronPython.Runtime.PythonDictionary arg4, IronPython.Runtime.PythonDictionary arg5, IronPython.Runtime.PythonTuple arg6) + 0x280 bytes<span class="Apple-tab-span" style="white-space:pre">        </span></div>
<div> <span class="Apple-tab-span" style="white-space:pre">        </span>IronPython.dll!IronPython.Runtime.Importer.ImportLightThrow(IronPython.Runtime.CodeContext context, string fullName, IronPython.Runtime.PythonTuple from, int level) + 0x178 bytes<span class="Apple-tab-span" style="white-space:pre">        </span></div>
<div> <span class="Apple-tab-span" style="white-space:pre">        </span>IronPython.dll!IronPython.Runtime.Operations.PythonOps.ImportTop(IronPython.Runtime.CodeContext context, string fullName, int level) + 0x3f bytes<span class="Apple-tab-span" style="white-space:pre">        </span></div>
<div> <span class="Apple-tab-span" style="white-space:pre">        </span>Microsoft.Dynamic.dll!Microsoft.Scripting.Interpreter.FuncCallInstruction&lt;IronPython.Runtime.CodeContext,string,int,object&gt;.Run(Microsoft.Scripting.Interpreter.InterpretedFrame frame) + 0x212 bytes<span class="Apple-tab-span" style="white-space:pre">        </span></div>
<div> <span class="Apple-tab-span" style="white-space:pre">        </span>Microsoft.Dynamic.dll!Microsoft.Scripting.Interpreter.Interpreter.Run(Microsoft.Scripting.Interpreter.InterpretedFrame frame) + 0xf0 bytes<span class="Apple-tab-span" style="white-space:pre">        </span></div>
<div> <span class="Apple-tab-span" style="white-space:pre">        </span>Microsoft.Dynamic.dll!Microsoft.Scripting.Interpreter.LightLambda.Run2&lt;IronPython.Runtime.CodeContext,IronPython.Runtime.FunctionCode,object&gt;(IronPython.Runtime.CodeContext arg0, IronPython.Runtime.FunctionCode arg1) + 0x18f bytes<span class="Apple-tab-span" style="white-space:pre">        </span></div>
<div> <span class="Apple-tab-span" style="white-space:pre">        </span>IronPython.dll!IronPython.Compiler.PythonScriptCode.RunWorker(IronPython.Runtime.CodeContext ctx) + 0x9e bytes<span class="Apple-tab-span" style="white-space:pre">        </span></div>
<div> <span class="Apple-tab-span" style="white-space:pre">        </span>IronPython.dll!IronPython.Compiler.PythonScriptCode.Run(Microsoft.Scripting.Runtime.Scope scope) + 0xb9 bytes<span class="Apple-tab-span" style="white-space:pre">        </span></div>
<div> <span class="Apple-tab-span" style="white-space:pre">        </span>IronPython.dll!IronPython.Compiler.RuntimeScriptCode.InvokeTarget(Microsoft.Scripting.Runtime.Scope scope) + 0x33f bytes<span class="Apple-tab-span" style="white-space:pre">        </span></div>
<div> <span class="Apple-tab-span" style="white-space:pre">        </span>IronPython.dll!IronPython.Compiler.RuntimeScriptCode.Run(Microsoft.Scripting.Runtime.Scope scope) + 0x32 bytes<span class="Apple-tab-span" style="white-space:pre">        </span></div>
<div> <span class="Apple-tab-span" style="white-space:pre">        </span>Microsoft.Scripting.dll!Microsoft.Scripting.SourceUnit.Execute(Microsoft.Scripting.Runtime.Scope scope, Microsoft.Scripting.ErrorSink errorSink) + 0xf4 bytes<span class="Apple-tab-span" style="white-space:pre">        </span></div>
<div> <span class="Apple-tab-span" style="white-space:pre">        </span>Microsoft.Scripting.dll!Microsoft.Scripting.SourceUnit.Execute(Microsoft.Scripting.Runtime.Scope scope) + 0x3f bytes<span class="Apple-tab-span" style="white-space:pre">        </span></div>
<div> <span class="Apple-tab-span" style="white-space:pre">        </span>Microsoft.Scripting.dll!Microsoft.Scripting.Hosting.ScriptSource.Execute(Microsoft.Scripting.Hosting.ScriptScope scope) + 0x76 bytes<span class="Apple-tab-span" style="white-space:pre">        </span></div>
<div> <span class="Apple-tab-span" style="white-space:pre">        </span>Microsoft.Scripting.dll!Microsoft.Scripting.Hosting.ScriptEngine.Execute(string expression, Microsoft.Scripting.Hosting.ScriptScope scope) + 0x53 bytes<span class="Apple-tab-span" style="white-space:pre">        </span></div>
<div> <span class="Apple-tab-span" style="white-space:pre">        </span>Microsoft.Scripting.dll!Microsoft.Scripting.Hosting.ScriptEngine.ExecuteAndWrap(string expression, Microsoft.Scripting.Hosting.ScriptScope scope, out System.Runtime.Remoting.ObjectHandle exception) + 0x64 bytes<span class="Apple-tab-span" style="white-space:pre">        </span></div>
<div> <span class="Apple-tab-span" style="white-space:pre">        </span>[Native to Managed Transition]<span class="Apple-tab-span" style="white-space:pre">        </span></div><div> <span class="Apple-tab-span" style="white-space:pre">        </span>[Managed to Native Transition]<span class="Apple-tab-span" style="white-space:pre">        </span></div>
<div> <span class="Apple-tab-span" style="white-space:pre">        </span>mscorlib.dll!System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(System.Runtime.Remoting.Messaging.IMessage msg, int methodPtr, bool fExecuteInContext) + 0x429 bytes<span class="Apple-tab-span" style="white-space:pre">        </span></div>
<div> <span class="Apple-tab-span" style="white-space:pre">        </span>mscorlib.dll!System.Runtime.Remoting.Messaging.ServerObjectTerminatorSink.SyncProcessMessage(System.Runtime.Remoting.Messaging.IMessage reqMsg) + 0x107 bytes<span class="Apple-tab-span" style="white-space:pre">        </span></div>
<div> <span class="Apple-tab-span" style="white-space:pre">        </span>mscorlib.dll!System.Runtime.Remoting.Messaging.ServerContextTerminatorSink.SyncProcessMessage(System.Runtime.Remoting.Messaging.IMessage reqMsg) + 0x16c bytes<span class="Apple-tab-span" style="white-space:pre">        </span></div>
<div> <span class="Apple-tab-span" style="white-space:pre">        </span>mscorlib.dll!System.Runtime.Remoting.Channels.CrossContextChannel.SyncProcessMessageCallback(object[] args) + 0x1ba bytes<span class="Apple-tab-span" style="white-space:pre">        </span></div>
<div> <span class="Apple-tab-span" style="white-space:pre">        </span>[Native to Managed Transition]<span class="Apple-tab-span" style="white-space:pre">        </span></div><div> <span class="Apple-tab-span" style="white-space:pre">        </span>[Managed to Native Transition]<span class="Apple-tab-span" style="white-space:pre">        </span></div>
<div> <span class="Apple-tab-span" style="white-space:pre">        </span>mscorlib.dll!System.Runtime.Remoting.Channels.CrossContextChannel.SyncProcessMessage(System.Runtime.Remoting.Messaging.IMessage reqMsg) + 0x113 bytes<span class="Apple-tab-span" style="white-space:pre">        </span></div>
<div> <span class="Apple-tab-span" style="white-space:pre">        </span>mscorlib.dll!System.Runtime.Remoting.Channels.ChannelServices.SyncDispatchMessage(System.Runtime.Remoting.Messaging.IMessage msg) + 0x167 bytes<span class="Apple-tab-span" style="white-space:pre">        </span></div>
<div> <span class="Apple-tab-span" style="white-space:pre">        </span>mscorlib.dll!System.Runtime.Remoting.Channels.CrossAppDomainSink.DoDispatch(byte[] reqStmBuff, System.Runtime.Remoting.Messaging.SmuggledMethodCallMessage smuggledMcm, out System.Runtime.Remoting.Messaging.SmuggledMethodReturnMessage smuggledMrm) + 0xc8 bytes<span class="Apple-tab-span" style="white-space:pre">        </span></div>
<div> <span class="Apple-tab-span" style="white-space:pre">        </span>mscorlib.dll!System.Runtime.Remoting.Channels.CrossAppDomainSink.DoTransitionDispatchCallback(object[] args) + 0x92 bytes<span class="Apple-tab-span" style="white-space:pre">        </span></div>
<div> <span class="Apple-tab-span" style="white-space:pre">        </span>[Appdomain Transition]<span class="Apple-tab-span" style="white-space:pre">        </span></div><div> <span class="Apple-tab-span" style="white-space:pre">        </span>mscorlib.dll!System.Runtime.Remoting.Channels.CrossAppDomainSink.DoTransitionDispatch(byte[] reqStmBuff, System.Runtime.Remoting.Messaging.SmuggledMethodCallMessage smuggledMcm, out System.Runtime.Remoting.Messaging.SmuggledMethodReturnMessage smuggledMrm) + 0xa0 bytes<span class="Apple-tab-span" style="white-space:pre">        </span></div>
<div> <span class="Apple-tab-span" style="white-space:pre">        </span>mscorlib.dll!System.Runtime.Remoting.Channels.CrossAppDomainSink.SyncProcessMessage(System.Runtime.Remoting.Messaging.IMessage reqMsg) + 0x13b bytes<span class="Apple-tab-span" style="white-space:pre">        </span></div>
<div> <span class="Apple-tab-span" style="white-space:pre">        </span>mscorlib.dll!System.Runtime.Remoting.Proxies.RemotingProxy.CallProcessMessage(System.Runtime.Remoting.Messaging.IMessageSink ms, System.Runtime.Remoting.Messaging.IMessage reqMsg, System.Runtime.Remoting.Contexts.ArrayWithSize proxySinks, System.Threading.Thread currentThread, System.Runtime.Remoting.Contexts.Context currentContext, bool bSkippingContextChain) + 0x9e bytes<span class="Apple-tab-span" style="white-space:pre">        </span></div>
<div> <span class="Apple-tab-span" style="white-space:pre">        </span>mscorlib.dll!System.Runtime.Remoting.Proxies.RemotingProxy.InternalInvoke(System.Runtime.Remoting.Messaging.IMethodCallMessage reqMcmMsg, bool useDispatchMessage, int callType) + 0x525 bytes<span class="Apple-tab-span" style="white-space:pre">        </span></div>
<div> <span class="Apple-tab-span" style="white-space:pre">        </span>mscorlib.dll!System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(ref System.Runtime.Remoting.Proxies.MessageData msgData, int type) + 0x5fa bytes<span class="Apple-tab-span" style="white-space:pre">        </span></div>
<div>&gt;<span class="Apple-tab-span" style="white-space:pre">        </span>Elipse.Epm.Scripting.dll!Elipse.Epm.Scripting.ExpressionEvaluator.ImportStandardModules(Microsoft.Scripting.Hosting.ScriptScope scope) Line 181 + 0x3d bytes<span class="Apple-tab-span" style="white-space:pre">        </span>C#</div>
</div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br><br><div class="gmail_quote">On Wed, Mar 7, 2012 at 4:47 PM, Dino Viehland <span dir="ltr">&lt;<a href="mailto:dinov@microsoft.com">dinov@microsoft.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">





<div lang="EN-US" link="blue" vlink="purple">
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">After adding the reflection permissions I wonder what the exception is.  Instead of doing Engine.Execute(string, ScriptScope) can you instead call ExecuteAndWrap(string,
 ScriptScope, out ObjectHandle)?  In general when you’re working with the remote domain you’ll want to use the *Wrap versions to avoid serializing results back into the local domain (which can fail).   <u></u><u></u></span></p>

<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">I’m not sure if we’re trying to serialize an exception object here or the result of your execution, but either way one of those is failing.  You should be able
 to check and see if the handles are null, and can also pass them back into the remote domain for formatting (using either ObjectOperations.Format or ExceptionOperations.FormatException) and just get a string back.<u></u><u></u></span></p>

<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u> <u></u></span></p>
<div style="border:none;border-left:solid blue 1.5pt;padding:0in 0in 0in 4.0pt">
<div>
<div style="border:none;border-top:solid #b5c4df 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;">From:</span></b><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;"> Cesar Mello [mailto:<a href="mailto:cmello@gmail.com" target="_blank">cmello@gmail.com</a>]
<br>
<b>Sent:</b> Wednesday, March 07, 2012 11:38 AM<br>
<b>To:</b> Dino Viehland<br>
<b>Cc:</b> <a href="mailto:ironpython-users@python.org" target="_blank">ironpython-users@python.org</a></span></p><div><div class="h5"><br>
<b>Subject:</b> Re: [Ironpython-users] Importing modules in a restricted AppDomain<u></u><u></u></div></div><p></p>
</div>
</div><div><div class="h5">
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Thanks a lot for the help guys. I&#39;m trying to walk on my own, but just for a quick feedback I&#39;ve used the code suggested and now when I run &quot;import decimal&quot; I get a MethodAccessException. I presumed it was safe to add all the Reflection
 permissions and then I get an unhandled ArgumentNullException (second stack trace). There is a bunch of internal SecurityExceptions that are handled in the meantime though. I&#39;ll try to debug this using the Console in a restricted AppDomain, so please don&#39;t
 bother to answer me if I am doing some silly mistake.<u></u><u></u></p>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">Thanks and best regards!<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">Mello<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">Stack trace 1 (MethodAccessException)<u></u><u></u></p>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">Attempt by method &#39;Microsoft.Scripting.Utils.ReflectionUtils.CreateDelegate(System.Reflection.MethodInfo, System.Type, System.Object)&#39; to access method &#39;IronPython.Compiler.Ast.UncollectableCompilationMode.NextSite&lt;System.Func`4&lt;System.Runtime.CompilerServices.CallSite,System.Object,IronPython.Runtime.CodeContext,System.Object&gt;&gt;(System.Dynamic.DynamicMetaObjectBinder)&#39;
 failed.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<div>
<div>
<p class="MsoNormal">   at System.Delegate.BindToMethodInfo(Object target, IRuntimeMethodInfo method, RuntimeType methodType, DelegateBindingFlags flags)<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">   at System.Delegate.CreateDelegate(Type type, Object firstArgument, MethodInfo method, Boolean throwOnBindFailure)<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">   at Microsoft.Scripting.Utils.ReflectionUtils.CreateDelegate(MethodInfo methodInfo, Type delegateType, Object target)<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">   at Microsoft.Scripting.Utils.ReflectionUtils.CreateDelegate(MethodInfo methodInfo, Type delegateType)<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">   at IronPython.Compiler.Ast.UncollectableCompilationMode.DelegateCache.MakeDelegateType(Type retType, Expression[] args)<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">   at IronPython.Compiler.Ast.UncollectableCompilationMode.ReduceDynamic(DynamicMetaObjectBinder binder, Type retType, Expression arg0, Expression arg1)<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">   at IronPython.Compiler.Ast.DynamicGetMemberExpression.Reduce()<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">   at System.Linq.Expressions.Expression.ReduceAndCheck()<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">   at System.Linq.Expressions.Expression.VisitChildren(ExpressionVisitor visitor)<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">   at System.Linq.Expressions.ExpressionVisitor.VisitExtension(Expression node)<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">   at Microsoft.Scripting.Ast.LightExceptionRewriter.VisitExtension(Expression node)<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">   at System.Linq.Expressions.Expression.Accept(ExpressionVisitor visitor)<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">   at System.Linq.Expressions.ExpressionVisitor.Visit(Expression node)<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">   at System.Linq.Expressions.Expression.VisitChildren(ExpressionVisitor visitor)<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">   at System.Linq.Expressions.ExpressionVisitor.VisitExtension(Expression node)<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">   at Microsoft.Scripting.Ast.LightExceptionRewriter.VisitExtension(Expression node)<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">   at System.Linq.Expressions.Expression.Accept(ExpressionVisitor visitor)<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">   at System.Linq.Expressions.ExpressionVisitor.Visit(Expression node)<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">   at System.Linq.Expressions.ExpressionVisitor.VisitBlock(BlockExpression node)<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">   at System.Linq.Expressions.BlockExpression.Accept(ExpressionVisitor visitor)<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">   at System.Linq.Expressions.ExpressionVisitor.Visit(Expression node)<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">   at System.Linq.Expressions.ExpressionVisitor.VisitBlock(BlockExpression node)<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">   at System.Linq.Expressions.BlockExpression.Accept(ExpressionVisitor visitor)<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">   at System.Linq.Expressions.ExpressionVisitor.Visit(Expression node)<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">   at System.Linq.Expressions.Expression.VisitChildren(ExpressionVisitor visitor)<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">   at System.Linq.Expressions.ExpressionVisitor.VisitExtension(Expression node)<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">   at Microsoft.Scripting.Ast.LightExceptionRewriter.VisitExtension(Expression node)<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">   at System.Linq.Expressions.Expression.Accept(ExpressionVisitor visitor)<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">   at System.Linq.Expressions.ExpressionVisitor.Visit(Expression node)<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">   at System.Linq.Expressions.ExpressionVisitor.VisitBlock(BlockExpression node)<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">   at System.Linq.Expressions.BlockExpression.Accept(ExpressionVisitor visitor)<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">   at System.Linq.Expressions.ExpressionVisitor.Visit(Expression node)<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">   at System.Linq.Expressions.Expression.VisitChildren(ExpressionVisitor visitor)<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">   at System.Linq.Expressions.ExpressionVisitor.VisitExtension(Expression node)<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">   at Microsoft.Scripting.Ast.LightExceptionRewriter.VisitExtension(Expression node)<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">   at System.Linq.Expressions.Expression.Accept(ExpressionVisitor visitor)<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">   at System.Linq.Expressions.ExpressionVisitor.Visit(Expression node)<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">   at System.Linq.Expressions.ExpressionVisitor.VisitBlock(BlockExpression node)<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">   at System.Linq.Expressions.BlockExpression.Accept(ExpressionVisitor visitor)<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">   at System.Linq.Expressions.ExpressionVisitor.Visit(Expression node)<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">   at Microsoft.Scripting.Ast.LightExceptionRewriter.RewriteTryBody(TryExpression node, LabelTarget ehLabel)<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">   at Microsoft.Scripting.Ast.LightExceptionRewriter.RewriteTryCatch(TryExpression node)<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">   at Microsoft.Scripting.Ast.LightExceptionRewriter.VisitTry(TryExpression node)<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">   at System.Linq.Expressions.TryExpression.Accept(ExpressionVisitor visitor)<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">   at System.Linq.Expressions.ExpressionVisitor.Visit(Expression node)<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">   at Microsoft.Scripting.Ast.LightExceptionRewriter.Rewrite(Expression expr)<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">   at Microsoft.Scripting.Ast.LightExceptionConvertingExpression.Reduce()<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">   at Microsoft.Scripting.Interpreter.LightCompiler.CompileExtensionExpression(Expression expr)<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">   at Microsoft.Scripting.Interpreter.LightCompiler.CompileNoLabelPush(Expression expr)<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">   at Microsoft.Scripting.Interpreter.LightCompiler.Compile(Expression expr)<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">   at Microsoft.Scripting.Interpreter.LightCompiler.CompileMethodCallExpression(Expression expr)<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">   at Microsoft.Scripting.Interpreter.LightCompiler.CompileNoLabelPush(Expression expr)<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">   at Microsoft.Scripting.Interpreter.LightCompiler.Compile(Expression expr)<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">   at Microsoft.Scripting.Interpreter.LightCompiler.CompileExtensionExpression(Expression expr)<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">   at Microsoft.Scripting.Interpreter.LightCompiler.CompileNoLabelPush(Expression expr)<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">   at Microsoft.Scripting.Interpreter.LightCompiler.CompileAsVoid(Expression expr)<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">   at Microsoft.Scripting.Interpreter.LightCompiler.CompileBlockStart(BlockExpression node)<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">   at Microsoft.Scripting.Interpreter.LightCompiler.CompileBlockExpression(Expression expr, Boolean asVoid)<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">   at Microsoft.Scripting.Interpreter.LightCompiler.CompileAsVoid(Expression expr)<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">   at Microsoft.Scripting.Interpreter.LightCompiler.CompileBlockStart(BlockExpression node)<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">   at Microsoft.Scripting.Interpreter.LightCompiler.CompileBlockExpression(Expression expr, Boolean asVoid)<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">   at Microsoft.Scripting.Interpreter.LightCompiler.CompileNoLabelPush(Expression expr)<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">   at Microsoft.Scripting.Interpreter.LightCompiler.Compile(Expression expr)<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">   at Microsoft.Scripting.Interpreter.LightCompiler.CompileExtensionExpression(Expression expr)<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">   at Microsoft.Scripting.Interpreter.LightCompiler.CompileNoLabelPush(Expression expr)<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">   at Microsoft.Scripting.Interpreter.LightCompiler.CompileAsVoid(Expression expr)<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">   at Microsoft.Scripting.Interpreter.LightCompiler.CompileBlockStart(BlockExpression node)<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">   at Microsoft.Scripting.Interpreter.LightCompiler.CompileBlockExpression(Expression expr, Boolean asVoid)<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">   at Microsoft.Scripting.Interpreter.LightCompiler.CompileNoLabelPush(Expression expr)<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">   at Microsoft.Scripting.Interpreter.LightCompiler.Compile(Expression expr)<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">   at Microsoft.Scripting.Interpreter.LightCompiler.CompileExtensionExpression(Expression expr)<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">   at Microsoft.Scripting.Interpreter.LightCompiler.CompileNoLabelPush(Expression expr)<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">   at Microsoft.Scripting.Interpreter.LightCompiler.CompileAsVoid(Expression expr)<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">   at Microsoft.Scripting.Interpreter.LightCompiler.Compile(Expression expr, Boolean asVoid)<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">   at Microsoft.Scripting.Interpreter.LightCompiler.CompileBlockExpression(Expression expr, Boolean asVoid)<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">   at Microsoft.Scripting.Interpreter.LightCompiler.CompileNoLabelPush(Expression expr)<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">   at Microsoft.Scripting.Interpreter.LightCompiler.Compile(Expression expr)<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">   at Microsoft.Scripting.Interpreter.LightCompiler.CompileTryExpression(Expression expr)<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">   at Microsoft.Scripting.Interpreter.LightCompiler.CompileNoLabelPush(Expression expr)<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">   at Microsoft.Scripting.Interpreter.LightCompiler.CompileAsVoid(Expression expr)<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">   at Microsoft.Scripting.Interpreter.LightCompiler.Compile(Expression expr, Boolean asVoid)<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">   at Microsoft.Scripting.Interpreter.LightCompiler.CompileBlockExpression(Expression expr, Boolean asVoid)<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">   at Microsoft.Scripting.Interpreter.LightCompiler.CompileAsVoid(Expression expr)<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">   at Microsoft.Scripting.Interpreter.LightCompiler.Compile(Expression expr, Boolean asVoid)<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">   at Microsoft.Scripting.Interpreter.LightCompiler.CompileBlockExpression(Expression expr, Boolean asVoid)<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">   at Microsoft.Scripting.Interpreter.LightCompiler.CompileNoLabelPush(Expression expr)<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">   at Microsoft.Scripting.Interpreter.LightCompiler.Compile(Expression expr)<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">   at Microsoft.Scripting.Interpreter.LightCompiler.CompileTryExpression(Expression expr)<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">   at Microsoft.Scripting.Interpreter.LightCompiler.CompileNoLabelPush(Expression expr)<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">   at Microsoft.Scripting.Interpreter.LightCompiler.CompileAsVoid(Expression expr)<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">   at Microsoft.Scripting.Interpreter.LightCompiler.Compile(Expression expr, Boolean asVoid)<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">   at Microsoft.Scripting.Interpreter.LightCompiler.CompileBlockExpression(Expression expr, Boolean asVoid)<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">   at Microsoft.Scripting.Interpreter.LightCompiler.CompileAsVoid(Expression expr)<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">   at Microsoft.Scripting.Interpreter.LightCompiler.CompileBlockStart(BlockExpression node)<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">   at Microsoft.Scripting.Interpreter.LightCompiler.CompileBlockExpression(Expression expr, Boolean asVoid)<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">   at Microsoft.Scripting.Interpreter.LightCompiler.CompileNoLabelPush(Expression expr)<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">   at Microsoft.Scripting.Interpreter.LightCompiler.Compile(Expression expr)<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">   at Microsoft.Scripting.Interpreter.LightCompiler.CompileLabelExpression(Expression expr)<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">   at Microsoft.Scripting.Interpreter.LightCompiler.CompileNoLabelPush(Expression expr)<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">   at Microsoft.Scripting.Interpreter.LightCompiler.Compile(Expression expr)<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">   at Microsoft.Scripting.Interpreter.LightCompiler.CompileTop(LightLambdaExpression node)<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">   at Microsoft.Scripting.Ast.LightExpression`1.Compile(Int32 compilationThreshold)<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">   at IronPython.Compiler.RuntimeScriptCode.Compile()<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">   at IronPython.Compiler.RuntimeScriptCode.EnsureCompiled()<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">   at IronPython.Compiler.RuntimeScriptCode.InvokeTarget(Scope scope)<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">   at IronPython.Compiler.RuntimeScriptCode.Run(Scope scope)<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">   at IronPython.Runtime.PythonContext.InitializeModule(String fileName, ModuleContext moduleContext, ScriptCode scriptCode, ModuleOptions options)<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">   at IronPython.Runtime.PythonContext.CompileModule(String fileName, String moduleName, SourceUnit sourceCode, ModuleOptions options, ScriptCode&amp; scriptCode)<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">   at IronPython.Runtime.PythonContext.CompileModule(String fileName, String moduleName, SourceUnit sourceCode, ModuleOptions options)<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">   at IronPython.Runtime.Importer.LoadFromSourceUnit(CodeContext context, SourceUnit sourceCode, String name, String path)<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">   at IronPython.Runtime.Importer.LoadModuleFromSource(CodeContext context, String name, String path)<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">   at IronPython.Runtime.Importer.LoadFromDisk(CodeContext context, String name, String fullName, String str)<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">   at IronPython.Runtime.Importer.ImportFromPathHook(CodeContext context, String name, String fullName, List path, Func`5 defaultLoader)<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">   at IronPython.Runtime.Importer.ImportFromPath(CodeContext context, String name, String fullName, List path)<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">   at IronPython.Runtime.Importer.ImportTopAbsolute(CodeContext context, String name)<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">   at IronPython.Runtime.Importer.ImportModule(CodeContext context, Object globals, String modName, Boolean bottom, Int32 level)<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">   at IronPython.Modules.Builtin.__import__(CodeContext context, String name, Object globals, Object locals, Object fromlist, Int32 level)<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">   at System.Func`7.Invoke(T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6)<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">   at Microsoft.Scripting.Interpreter.FuncCallInstruction`7.Run(InterpretedFrame frame)<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">   at Microsoft.Scripting.Interpreter.Interpreter.Run(InterpretedFrame frame)<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">   at Microsoft.Scripting.Interpreter.LightLambda.Run7[T0,T1,T2,T3,T4,T5,T6,TRet](T0 arg0, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6)<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">   at IronPython.Runtime.Importer.ImportLightThrow(CodeContext context, String fullName, PythonTuple from, Int32 level)<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">   at IronPython.Runtime.Operations.PythonOps.ImportTop(CodeContext context, String fullName, Int32 level)<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">   at System.Func`4.Invoke(T1 arg1, T2 arg2, T3 arg3)<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">   at Microsoft.Scripting.Interpreter.FuncCallInstruction`4.Run(InterpretedFrame frame)<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">   at Microsoft.Scripting.Interpreter.Interpreter.Run(InterpretedFrame frame)<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">   at Microsoft.Scripting.Interpreter.LightLambda.Run2[T0,T1,TRet](T0 arg0, T1 arg1)<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">   at IronPython.Compiler.PythonScriptCode.RunWorker(CodeContext ctx)<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">   at IronPython.Compiler.PythonScriptCode.Run(Scope scope)<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">   at IronPython.Compiler.RuntimeScriptCode.InvokeTarget(Scope scope)<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">   at IronPython.Compiler.RuntimeScriptCode.Run(Scope scope)<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">   at Microsoft.Scripting.SourceUnit.Execute(Scope scope, ErrorSink errorSink)<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">   at Microsoft.Scripting.SourceUnit.Execute(Scope scope)<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">   at Microsoft.Scripting.Hosting.ScriptSource.Execute(ScriptScope scope)<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">   at Microsoft.Scripting.Hosting.ScriptEngine.Execute(String expression, ScriptScope scope)<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">   at Microsoft.Scripting.Hosting.ScriptEngine.Execute(String expression, ScriptScope scope)<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">   at Elipse.Epm.Scripting.ExpressionEvaluator.ImportStandardModules(ScriptScope scope) in D:\proj\epm_5527\Source\EpmCommon\Elipse.Epm.Scripting\ExpressionEvaluator.cs:line 174<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">   at Elipse.Epm.Scripting.ExpressionEvaluator.AddExpression(Expression expression, Object clientHandle) in D:\proj\epm_5527\Source\EpmCommon\Elipse.Epm.Scripting\ExpressionEvaluator.cs:line 82<u></u><u></u></p>

</div>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">--------------------------------------------------<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">After adding Reflection permissions;<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<div>
<p class="MsoNormal">at System.Reflection.RuntimeMethodInfo.MakeGenericMethod(Type[] methodInstantiation)<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">   at System.Reflection.MemberInfoSerializationHolder.GetRealObject(StreamingContext context)<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">   at Microsoft.Scripting.Hosting.ScriptEngine.Execute(String expression, ScriptScope scope)<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">   at Elipse.Epm.Scripting.ExpressionEvaluator.ImportStandardModules(ScriptScope scope) in D:\proj\epm_5527\Source\EpmCommon\Elipse.Epm.Scripting\ExpressionEvaluator.cs:line 174<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">   at Elipse.Epm.Scripting.ExpressionEvaluator.AddExpression(Expression expression, Object clientHandle) in D:\proj\epm_5527\Source\EpmCommon\Elipse.Epm.Scripting\ExpressionEvaluator.cs:line 82<u></u><u></u></p>

</div>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><u></u> <u></u></p>
<div>
<p class="MsoNormal">On Wed, Mar 7, 2012 at 2:34 PM, Dino Viehland &lt;<a href="mailto:dinov@microsoft.com" target="_blank">dinov@microsoft.com</a>&gt; wrote:<u></u><u></u></p>
<div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">Nope, ideally IronPython’s assemblies are not trusted.  In general IronPython’s assemblies are “security
 transparent” which means they don’t affect any security decisions made by the CLR.  If you gave them full trust then the user could do something like file(‘C:\\bad_file.txt’, ‘w+’).  The security transparency means that IronPython can contain a bunch of code
 for accessing files and stuff but that code doesn’t need to be audited for security because we don’t have any permissions of our own.</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"> </span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">You might want to try doing something like:</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"> </span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">            AppDomainSetup info = new AppDomainSetup();</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">            info.ApplicationBase = AppDomain.CurrentDomain.BaseDirectory;</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">            info.ApplicationName = &quot;Test&quot;;</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">           
</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">            Evidence evidence = new Evidence();</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">            evidence.AddHost(new Zone(SecurityZone.Internet));</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"> </span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">            System.Security.PermissionSet permSet = SecurityManager.GetStandardSandbox(evidence);</span><u></u><u></u></p>

<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">            AppDomain newDomain = AppDomain.CreateDomain(&quot;test&quot;, evidence, info, permSet, null);</span><u></u><u></u></p>

<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">           
</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">            // create runtime in partial trust...</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">            ScriptRuntime runtime = Python.CreateRuntime(newDomain);</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"> </span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">Which will run the code in the internet zone which should be a safe set of permissions – you might
 need to add in your path access to this, but we use this setup in a test case so it definitely works.</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"> </span><u></u><u></u></p>
<div style="border:none;border-left:solid blue 1.5pt;padding:0in 0in 0in 4.0pt">
<div>
<div style="border:none;border-top:solid #b5c4df 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;">From:</span></b><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;"> ironpython-users-bounces+dinov=<a href="mailto:microsoft.com@python.org" target="_blank">microsoft.com@python.org</a>
 [mailto:<a href="mailto:ironpython-users-bounces%2Bdinov" target="_blank">ironpython-users-bounces+dinov</a>=<a href="mailto:microsoft.com@python.org" target="_blank">microsoft.com@python.org</a>]
<b>On Behalf Of </b>Cesar Mello<br>
<b>Sent:</b> Wednesday, March 07, 2012 5:17 AM<br>
<b>To:</b> <a href="mailto:ironpython-users@python.org" target="_blank">ironpython-users@python.org</a><br>
<b>Subject:</b> Re: [Ironpython-users] Importing modules in a restricted AppDomain</span><u></u><u></u></p>
</div>
</div>
<div>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">Hi,<u></u><u></u></p>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">Must I grant fulltrust permissions to the IronPython assemblies? Sorry for the basic question, but will the scripts still be restricted in this case?<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">Thank you a lot. This is a bit urgent for me, because it&#39;s the last step before I can finish the prototype with IronPython and let it be accepted for embedding in our product.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">Best regards!<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">Mello<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"> <u></u><u></u></p>
<div>
<p class="MsoNormal">On Mon, Mar 5, 2012 at 4:26 PM, Cesar Mello &lt;<a href="mailto:cmello@gmail.com" target="_blank">cmello@gmail.com</a>&gt; wrote:<u></u><u></u></p>
<p class="MsoNormal">Please ignore my previous question. Sucessfully added FileIOPermission with PathDiscovery and it worked:<u></u><u></u></p>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
<div>
<div>
<p class="MsoNormal">      var pythonLibsPath = ExpressionEvaluator.GetPythonLibsPath();<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">      permissionSet.AddPermission(new FileIOPermission(FileIOPermissionAccess.PathDiscovery | FileIOPermissionAccess.Read, pythonLibsPath));<u></u><u></u></p>
</div>
</div>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">Now I&#39;m facing some problem with Emit permissions. Added ReflectionPermission(PermissionState.Unrestricted) but still doesn&#39;t work.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">I&#39;m using .NET 4 in this project at work. Sorry if the subject is too general and off-topic.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">Best regards<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">Mello<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">Message: Request for the permission of type &#39;System.Security.Permissions.SecurityPermission, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089&#39; failed.<u></u><u></u></p>

</div>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
<div>
<div>
<p class="MsoNormal">at System.Security.CodeAccessSecurityEngine.Check(Object demand, StackCrawlMark&amp; stackMark, Boolean isPermSet)<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">   at System.Security.CodeAccessPermission.Demand()<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">   at System.Reflection.Emit.AssemblyBuilder.DefineDynamicModuleInternalNoLock(String name, Boolean emitSymbolInfo, StackCrawlMark&amp; stackMark)<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">   at System.Reflection.Emit.AssemblyBuilder.DefineDynamicModuleInternal(String name, Boolean emitSymbolInfo, StackCrawlMark&amp; stackMark)<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">   at System.Reflection.Emit.AssemblyBuilder.DefineDynamicModule(String name, Boolean emitSymbolInfo)<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">   at Microsoft.Scripting.Generation.AssemblyGen..ctor(AssemblyName name, String outDir, String outFileExtension, Boolean isDebuggable, PortableExecutableKinds peKind, ImageFileMachine
 machine)<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">   at Microsoft.Scripting.Generation.AssemblyGen..ctor(AssemblyName name, String outDir, String outFileExtension, Boolean isDebuggable)<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">   at Microsoft.Scripting.Generation.Snippets.CreateNewAssembly(String nameSuffix, Boolean emitSymbols)<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">   at Microsoft.Scripting.Generation.Snippets.GetOrCreateAssembly(Boolean emitSymbols, AssemblyGen&amp; assembly)<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">   at Microsoft.Scripting.Generation.Snippets.GetAssembly(Boolean emitSymbols)<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">   at Microsoft.Scripting.Generation.Snippets.DefineType(String name, Type parent, Boolean preserveName, Boolean emitDebugSymbols)<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">   at Microsoft.Scripting.Generation.CompilerHelpers.CompileToMethod(LambdaExpression lambda, DebugInfoGenerator debugInfoGenerator, Boolean emitDebugSymbols)<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">   at Microsoft.Scripting.Generation.CompilerHelpers.CompileToMethod[T](Expression`1 lambda, DebugInfoGenerator debugInfoGenerator, Boolean emitDebugSymbols)<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">   at Microsoft.Scripting.Generation.CompilerHelpers.Compile[T](Expression`1 lambda, Boolean emitDebugSymbols)<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">   at IronPython.Compiler.RuntimeScriptCode.Compile()<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">   at IronPython.Compiler.RuntimeScriptCode.EnsureCompiled()<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">   at IronPython.Compiler.RuntimeScriptCode.InvokeTarget(Scope scope)<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">   at IronPython.Compiler.RuntimeScriptCode.Run(Scope scope)<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">   at IronPython.Runtime.PythonContext.InitializeModule(String fileName, ModuleContext moduleContext, ScriptCode scriptCode, ModuleOptions options)<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">   at IronPython.Runtime.PythonContext.CompileModule(String fileName, String moduleName, SourceUnit sourceCode, ModuleOptions options, ScriptCode&amp; scriptCode)<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">   at IronPython.Runtime.PythonContext.CompileModule(String fileName, String moduleName, SourceUnit sourceCode, ModuleOptions options)<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">   at IronPython.Runtime.Importer.LoadFromSourceUnit(CodeContext context, SourceUnit sourceCode, String name, String path)<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">   at IronPython.Runtime.Importer.LoadModuleFromSource(CodeContext context, String name, String path)<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">   at IronPython.Runtime.Importer.LoadFromDisk(CodeContext context, String name, String fullName, String str)<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">   at IronPython.Runtime.Importer.ImportFromPathHook(CodeContext context, String name, String fullName, List path, Func`5 defaultLoader)<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">   at IronPython.Runtime.Importer.ImportFromPath(CodeContext context, String name, String fullName, List path)<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">   at IronPython.Runtime.Importer.ImportTopAbsolute(CodeContext context, String name)<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">   at IronPython.Runtime.Importer.ImportModule(CodeContext context, Object globals, String modName, Boolean bottom, Int32 level)<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">   at IronPython.Modules.Builtin.__import__(CodeContext context, String name, Object globals, Object locals, Object fromlist, Int32 level)<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">   at Microsoft.Scripting.Interpreter.FuncCallInstruction`7.Run(InterpretedFrame frame)<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">   at Microsoft.Scripting.Interpreter.Interpreter.Run(InterpretedFrame frame)<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">   at Microsoft.Scripting.Interpreter.LightLambda.Run7[T0,T1,T2,T3,T4,T5,T6,TRet](T0 arg0, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6)<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">   at IronPython.Runtime.Importer.ImportLightThrow(CodeContext context, String fullName, PythonTuple from, Int32 level)<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">   at IronPython.Runtime.Operations.PythonOps.ImportTop(CodeContext context, String fullName, Int32 level)<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">   at Microsoft.Scripting.Interpreter.FuncCallInstruction`4.Run(InterpretedFrame frame)<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">   at Microsoft.Scripting.Interpreter.Interpreter.Run(InterpretedFrame frame)<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">   at Microsoft.Scripting.Interpreter.LightLambda.Run2[T0,T1,TRet](T0 arg0, T1 arg1)<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">   at IronPython.Compiler.PythonScriptCode.RunWorker(CodeContext ctx)<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">   at IronPython.Compiler.PythonScriptCode.Run(Scope scope)<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">   at IronPython.Compiler.RuntimeScriptCode.InvokeTarget(Scope scope)<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">   at IronPython.Compiler.RuntimeScriptCode.Run(Scope scope)<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">   at Microsoft.Scripting.SourceUnit.Execute(Scope scope, ErrorSink errorSink)<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">   at Microsoft.Scripting.SourceUnit.Execute(Scope scope)<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">   at Microsoft.Scripting.Hosting.ScriptSource.Execute(ScriptScope scope)<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">   at Microsoft.Scripting.Hosting.ScriptEngine.Execute(String expression, ScriptScope scope)<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">   at Microsoft.Scripting.Hosting.ScriptEngine.Execute(String expression, ScriptScope scope)<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">   at Elipse.Epm.Scripting.ExpressionEvaluator.ImportStandardModules(ScriptScope scope) in D:\proj\epm_5527\Source\EpmCommon\Elipse.Epm.Scripting\ExpressionEvaluator.cs:line 174<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">   at Elipse.Epm.Scripting.ExpressionEvaluator.AddExpression(Expression expression, Object clientHandle) in D:\proj\epm_5527\Source\EpmCommon\Elipse.Epm.Scripting\ExpressionEvaluator.cs:line
 82<u></u><u></u></p>
</div>
</div>
<div>
<div>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"> <u></u><u></u></p>
<div>
<p class="MsoNormal">On Mon, Mar 5, 2012 at 3:18 PM, Cesar Mello &lt;<a href="mailto:cmello@gmail.com" target="_blank">cmello@gmail.com</a>&gt; wrote:<u></u><u></u></p>
<p class="MsoNormal">Hi!<u></u><u></u></p>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">Is there a way to load modules without giving permission to the AppDomain to read .py files from disk?<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">I need to run user code with limited permissions. They should be able to do some simple calculations. But when I try to import a module like &#39;decimal&#39;, filesystem access permission
 is required. <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">Thank you a lot for the attention!<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">Best regards<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><span style="color:#888888">Mello</span><u></u><u></u></p>
</div>
</div>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
</div>
</div>
</div>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
</div>
</div>
</div></div></div>
</div>
</div>

</blockquote></div><br></div>