Error : Could not load file or assembly or one of it's dependencies

Error : Could not load file or assembly or one of it's dependencies

我当前的项目名称是"Power"。我已经在这个项目上工作了几个星期了,现在快结束了。但是今天当我尝试调试时,出现了这个错误。

Error while trying to run project: Could not load file or assembly 'Power' or one of its dependencies. The module was expected to contain an assembly manifest.

我将文档中的项目文件夹与另一个项目文件夹进行了比较,但似乎没有丢失任何内容。 (例如:*.cs、*.resx、*.config、*.manifest)我没有从项目文件夹中删除任何内容。

请帮我解决这个问题。 谢谢!

尝试关注

Remove Temporary Files C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files Close Visual studio and Open Again

0r

Remove and Add the same DLLs (Note: you add the same matching versions)

如果不能直接访问您的项目或解决方案,解决构建错误几乎是不可能的。但我会尝试为您提供一些指导,以找出问题的根源。

根据您收到的错误消息,构建错误是由名为 "Power" 的项目引起的。 查看该项目的 References,看看是否有任何缺失或损坏。你可以判断它旁边是否有一个黄色的感叹号。只需删除该引用并重新添加即可。

是啊……!!!我找到了解决这个可怕错误的方法...... 首先感谢所有试图帮助我的人...这是我的解决方案...

  1. Right Click on the Solution name
  2. Click Clean Solution
  3. Restart Visual Studio
  4. Goto project Properties >> Build
  5. Change Configuration to Release
  6. Start Debugging (F5)

1) , 2)

4) , 5)

下次记得保留项目文件夹的最新备份。

这个方法对我有用: 1.删​​除了bin文件夹 2.重建解决方案 3. 运行一个项目