You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
IronPython 2.7.11 (2.7.11.1000)
[.NETCoreApp,Version=v3.1 on .NET 6.0.7 (64-bit)]
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> import clr
>>> sys.path.append(r"d:\PATH\TO\MyPlugin")
>>> clr.AddReference("MyPlugin")
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
IOError: System.IO.IOException: Could not add reference to assembly MyPlugin
at IronPython.Runtime.ClrModule.AddReference(CodeContext context, String name)
at IronPython.Runtime.ClrModule.AddReference(CodeContext context, Object reference)
at IronPython.Runtime.ClrModule.AddReference(CodeContext context, Object[] references)
at Microsoft.Scripting.Interpreter.ActionCallInstruction`2.Run(InterpretedFrame frame)
at Microsoft.Scripting.Interpreter.Interpreter.Run(InterpretedFrame frame)
at Microsoft.Scripting.Interpreter.LightLambda.Run4[T0,T1,T2,T3,TRet](T0 arg0, T1 arg1, T2 arg2, T3 arg3)
at System.Dynamic.UpdateDelegates.UpdateAndExecute3[T0,T1,T2,TRet](CallSite site, T0 arg0, T1 arg1, T2 arg2)
at Microsoft.Scripting.Interpreter.FuncCallInstruction`6.Run(InterpretedFrame frame)
at Microsoft.Scripting.Interpreter.Interpreter.Run(InterpretedFrame frame)
at Microsoft.Scripting.Interpreter.LightLambda.Run4[T0,T1,T2,T3,TRet](T0 arg0, T1 arg1, T2 arg2, T3 arg3)
at IronPython.Compiler.Ast.CallExpression.Invoke1Instruction.Run(InterpretedFrame frame)
at Microsoft.Scripting.Interpreter.Interpreter.Run(InterpretedFrame frame)
at Microsoft.Scripting.Interpreter.LightLambda.Run2[T0,T1,TRet](T0 arg0, T1 arg1)
at IronPython.Compiler.PythonScriptCode.RunWorker(CodeContext ctx)
at IronPython.Compiler.PythonScriptCode.Run(Scope scope)
at IronPython.Hosting.PythonCommandLine.<>c__DisplayClass27_0.<RunOneInteraction>b__0()
Trying to solve this problem, I found entry in Windows Application Event Log:
Description: A .NET application failed.
Application: Maestro.exe
Path: C:\Program Files\MapGuide Maestro 6.0m11\Maestro.exe
Message: Cannot use file stream for [C:\Program Files\MapGuide Maestro 6.0m11\Maestro.deps.json]: No such file or directory
This suggests that there may be issues with Maestro configuration as self-contained .NET application.
--
Best regards
Rick
The text was updated successfully, but these errors were encountered:
Could you post a hypothetical minimal "hello world" F# example that your IronPython snippet would've loaded in the past and how such an example would be built (sorry, I don't use F#) and I'll investigate.
I think my information about F# was unnecessary. I wanted simply to tell that I use IronPython to load compiled .NET assemblies. You can build any basic, minimal C# example to reproduce this behavior. I reproduced this error with following code:
Hi,
I used to write my small addins to MapGuide Maestro in F#.
In m10 I am able to load compiled assembly within IronPython console with
But now, in m11, this simple code provokes error:
Trying to solve this problem, I found entry in Windows Application Event Log:
This suggests that there may be issues with Maestro configuration as self-contained .NET application.
--
Best regards
Rick
The text was updated successfully, but these errors were encountered: