Could not load file or assembly 'AssemblyName PublicKeyToken=null' or one of its dependencies

后端 未结 4 649
一个人的身影
一个人的身影 2020-12-10 12:02

{\"Could not load file or assembly \'AssemblyName, PublicKeyToken=null\' or one of its dependencies. The located assembly\'s manifest definition does not matc

4条回答
  •  失恋的感觉
    2020-12-10 12:37

    PublicKeyToken = null tells you that the CLR is looking for the unsigned assembly. Since you signed them, that's not going to work well and this kaboom is expected.

    You will have to rebuild the program so it uses the updated signed assembly and embeds the non-null PublicKeyToken into the manifest. You may have to remove the existing assembly reference and add it back, it isn't clear from the question whether you built the program using an unsigned copy.

    Use the Fuslogvw.exe utility if you still have trouble.

提交回复
热议问题