且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

尝试运行项目时出错:无法加载文件或程序集“myproject”或其依赖项。预计这些模块包含一个程序集清单。

更新时间:2023-11-09 23:09:10

这不是一个好问题 - 我们无法解决你正在尝试做的事情。

请记住,我们无法看到您的屏幕,访问您的硬盘或阅读您的想法。

您没有向我们提供有关正在发生的事情的真实信息。



首先来自 google搜索错误信息 [ ^ ],你会发现它可能是一个大小问题:你的解决方案的一部分是使用64(或32)位组合谎言,它调用的东西(可能是非.NET DLL)被编译为32位(或64位)。这两者不能像这样共存,因此会出现运行时错误。最有可能的是,你在某处使用遗留32位DLL,而你的项目的其余部分配置为任何CPU或64位。

尝试将所有项目重新配置为X86并查看是否问题消失了。如果没有,则尝试将它们全部重新配置为64位。


Hy guys ! my name is RasyidMF . now i want ask ! how to fixed "Error while trying to run project : Could not load file or assembly (MyProject) or one its dependencies . the modules was expected to contain an assembly manifest."

Please Help me !

What I have tried:

Just help me man ! i realy want fixed that but i cant

This is not a good question - we cannot work out from that little what you are trying to do.
Remember that we can't see your screen, access your HDD, or read your mind.
An you aren't giving us any real info about what is happening.

So start by googling the error message[^], and you'll find it's probably an size problem: part of your solution is using 64 (or 32) bit assemblies, and something it's calling (probably a non-.NET DLL) is compiled for 32 (or 64) bit. The two can't coexist like that so you get a run time error. Most likely, you are using a "legacy" 32 bit DLL somewhere and the rest of your project is configured "any CPU" or "64 bit".
Try reconfiguring all your projects to X86 and see if the problem goes away. If not, then try reconfiguring them all to 64 bit instead.