gpt4 book ai didi

c# - 解析程序集异常 : Attempt to load an unverifiable executable with fixups

转载 作者:IT王子 更新时间:2023-10-29 04:44:54 30 4
gpt4 key购买 nike

我将所需的程序集嵌入到我的项目中,并在运行时使用 AppDomain.CurrentDomain.AssemblyResolve 事件解析它们。

irrKlang 外,一​​切正常的 .net4-wrapper,如果我尝试这样做会抛出异常;

System.IO.FileLoadException: Attempt to load an unverifiable executable with fixups (IAT with more than 2 sections or a TLS section.) (Exception from HRESULT: 0x80131019)
at System.Reflection.RuntimeAssembly.nLoadImage(Byte[] rawAssembly, Byte[] rawSymbolStore, Evidence evidence, StackCrawlMark& stackMark, Boolean fIntrospection, SecurityContextSource securityContextSource)
at System.Reflection.Assembly.Load(Byte[] rawAssembly)
at xyz.Utility.Helpers.AssemblyManager.Resolver(Object sender, ResolveEventArgs args) in C:\Users\shalafi\Desktop\xyz\trunk\xyz\Utility\Helpers\AssemblyManager.cs:line 55
at System.AppDomain.OnAssemblyResolveEvent(RuntimeAssembly assembly, String assemblyFullName)

基本上我怀疑是 CLR not being able to load mixed mode assemblies使用 Assembly.Load(byte[]) 虽然我不确定。

我找不到与异常消息相关的任何信息;

Attempt to load an unverifiable executable with fixups (IAT with more than 2 sections or a TLS section.)

感谢帮助。

最佳答案

编辑:我发布的引用资料不再有效,因为外部链接已过时。请引用这里。 How do I dynamically load raw assemblies that contains unmanaged code?(bypassing 'Unverifiable code failed policy check' exception)

关于c# - 解析程序集异常 : Attempt to load an unverifiable executable with fixups,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5005409/

30 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com