Exception with Resolving assemblies: Attempt to load an unverifiable executable with fixups

前端 未结 2 2021
不思量自难忘°
不思量自难忘° 2021-01-04 00:35

I\'m embedding required assemblies to my project and resolving them on runtime with AppDomain.CurrentDomain.AssemblyResolve event.

All works okay except

相关标签:
2条回答
  • 2021-01-04 01:01

    Just in case anyone else is having my version of this problem, here's how I fixed it:

    • Create a new project with a different name
    • Copy all of your files into the new project (including code)
    • Add references to all the files necessary to compile without errors

    I really must have messed something up with my references/resources. I was getting this error when trying to load any external .dll from my program.

    0 讨论(0)
  • 2021-01-04 01:12

    EDIT : The references i posted are not valid anymore, because of outdated external links. Please refer here. How do I dynamically load raw assemblies that contains unmanaged code?(bypassing 'Unverifiable code failed policy check' exception)

    0 讨论(0)
提交回复
热议问题