System.Reflection.TargetInvocationException: Failed to load language 'IronPython 2.7.10'

Prerequisites

  • [x] Are you running the latest version?
  • [x] Are you reporting to the correct repository?
  • [x] Did you perform a cursory search?

Description

[Description of the bug or feature] System.Reflection.TargetInvocationException: Failed to load language 'IronPython 2.7.10': Operation is not supported on this platform. ---> System.PlatformNotSupportedException: Operation is not supported on this platform. в System.Comparison'1.EndInvoke(IAsyncResult result) в E:\A\_work\222\s\corefx\src\System.Linq.Expressions\src\System\Linq\Expressions\Compiler\DelegateHelpers.cs:строка 130 в IronPython.Runtime.PythonContext.GetInitialPrefix() в IronPython.Runtime.PythonContext..ctor(ScriptDomainManager manager, IDictionary'2 options) в _$ILCT$.$ILT$ReflectionDynamicInvoke$.InvokeRetVII[T0,T1](Object thisPtr, IntPtr methodToCall, ArgSetupState& argSetupState, Boolean targetIsThisCall) в System.InvokeUtils.CalliIntrinsics.Call(IntPtr dynamicInvokeHelperMethod, IntPtr dynamicInvokeHelperGenericDictionary, Object thisPtr, IntPtr methodToCall, ArgSetupState& argSetupState, Boolean isTargetThisCall) в System.InvokeUtils.CallDynamicInvokeMethod(Object thisPtr, IntPtr methodToCall, Object thisPtrDynamicInvokeMethod, IntPtr dynamicInvokeHelperMethod, IntPtr dynamicInvokeHelperGenericDictionary, Object targetMethodOrDelegate, Object[] parameters, BinderBundle binderBundle, Boolean wrapInTargetInvocationException, Boolean invokeMethodHelperIsThisCall, Boolean methodToCallIsThisCall) Exception_EndOfInnerExceptionStack в Microsoft.Scripting.Runtime.LanguageConfiguration.LoadLanguageContext(ScriptDomainManager domainManager, Boolean& alreadyLoaded) в Microsoft.Scripting.Runtime.DlrConfiguration.LoadLanguageContext(ScriptDomainManager manager, LanguageConfiguration config) в Microsoft.Scripting.Runtime.DlrConfiguration.TryLoadLanguage(ScriptDomainManager manager, AssemblyQualifiedTypeName providerName, LanguageContext& language) в Microsoft.Scripting.Runtime.ScriptDomainManager.GetLanguageByTypeName(String providerAssemblyQualifiedTypeName) в Microsoft.Scripting.Hosting.ScriptRuntime.GetEngineByTypeName(String assemblyQualifiedTypeName)

Steps to Reproduce

Compile and run simple UWP app in Release mode, that using IronPython. That exception throws when Assembly.CodeBase property accessed. May be CoreRT affiliated too. If String.Empty is permissible, I think exception should be catch.

该提问来源于开源项目:IronLanguages/ironpython2

查看全部
weixin_39577964
weixin_39577964
2020/11/22 09:20
  • 点赞
  • 收藏
  • 回答
    私信

3个回复