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
Hello, I have c# MSTest project (in .net 4.8) that is referencing another c# project (also in .net 4.8) that is referencing IronPython 2.7.12. When running a test, MSTestAdapter is trying to load all dependencies. When it starts to load IronPython it throws an exeption it could not load Mono.Posix, Version=4.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756 (call stack see lower). I am bit confused, because nuget dependencies say IronPython 2.7.12 on .net 4.5 is only dependent on DynamicLanguageRuntime (>= 1.3.1). I verified in debug that it is indeed trying to load .net 4.5 version, but even if it targeted other framework, thare is dependence on Mono.Unix >= 7.1.0-final.1.21458.1. I dont understand where does this dependence comming from and how to solve it. And even if it were dependent on version 4.0.0, for Mono.Posix (or unix) there are only >=7.0.0 nuget versions available so where do I get version 4.0.0?
Call Stack
System.IO.FileLoadException
HResult=0x80131040
Message=Cannot load file or assembly Mono.Posix, Version=4.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756 or one of its dependencies. The assembly manifest definition detected does not match the assembly reference. (Exception based on HRESULT: 0x80131040)
Source=mscorlib
StackTrace:
at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) in System.Reflection\RuntimeAssembly.cs:line 578
This exception was originally thrown at this call stack:
System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(System.Reflection.AssemblyName, System.Security.Policy.Evidence, System.Reflection.RuntimeAssembly, ref System.Threading.StackCrawlMark, System.IntPtr, bool, bool, bool) in RuntimeAssembly.cs
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello, I have c# MSTest project (in .net 4.8) that is referencing another c# project (also in .net 4.8) that is referencing IronPython 2.7.12. When running a test, MSTestAdapter is trying to load all dependencies. When it starts to load IronPython it throws an exeption it could not load Mono.Posix, Version=4.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756 (call stack see lower). I am bit confused, because nuget dependencies say IronPython 2.7.12 on .net 4.5 is only dependent on DynamicLanguageRuntime (>= 1.3.1). I verified in debug that it is indeed trying to load .net 4.5 version, but even if it targeted other framework, thare is dependence on Mono.Unix >= 7.1.0-final.1.21458.1. I dont understand where does this dependence comming from and how to solve it. And even if it were dependent on version 4.0.0, for Mono.Posix (or unix) there are only >=7.0.0 nuget versions available so where do I get version 4.0.0?
Call Stack
System.IO.FileLoadException HResult=0x80131040 Message=Cannot load file or assembly Mono.Posix, Version=4.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756 or one of its dependencies. The assembly manifest definition detected does not match the assembly reference. (Exception based on HRESULT: 0x80131040) Source=mscorlib StackTrace: at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) in System.Reflection\RuntimeAssembly.cs:line 578This exception was originally thrown at this call stack:
System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(System.Reflection.AssemblyName, System.Security.Policy.Evidence, System.Reflection.RuntimeAssembly, ref System.Threading.StackCrawlMark, System.IntPtr, bool, bool, bool) in RuntimeAssembly.cs
Beta Was this translation helpful? Give feedback.
All reactions