What kind of problem can cause a TypeLoadException?

前端 未结 4 1482
礼貌的吻别
礼貌的吻别 2021-01-07 13:33

I have a big and bloated software and I want to add a new GUI element to it. The GUI element was written using XAML and WPF. I created the UI element in a separate assembly,

4条回答
  •  旧时难觅i
    2021-01-07 14:17

    Possible issues include:

    1. The assembly you reference is x64 only and your consumer is x86 or AnyCPU on a 32-Bit CLR
    2. Your consumer assembly was compiled against a different version of the referenced assembly

    You can try to use FusLogVW to turn on assembly binding logging and check the logfile for more information about what failed.

提交回复
热议问题