Error while trying to run project:The module was expected to contain an assembly manifest

后端 未结 6 514
谎友^
谎友^ 2020-12-03 21:43

When I try to run the project it says:

Error while trying to run project:could not load file or assembly \'Project.exe\' or one of its depend

6条回答
  •  忘掉有多难
    2020-12-03 22:23

    0xc000007b is "STATUS_INVALID_IMAGE_FORMAT". From experience, this points me to the project properties. A few things worth checking out:

    • Check to see if all the build options are set to either x86 or x64, depending on your system architecture, or AnyCPU.
    • If you're using dlls, consider whether they were compiled for your target architecture or not. If not, then recompile them accordingly or get them in the right version from wherever you got them.
    • Finally, check if your project assembly and loaded assemblies have different names. That seems to make things go boom as well.

提交回复
热议问题