且构网

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

“尝试运行项目时出错:无法加载文件或程序集”

更新时间:2022-10-22 12:49:28

转到VS命令提示符并键入devenv.exe / resetskippkgs并按Enter键。



我希望这可以解决您的问题。


此错误意味着它尝试运行的应用程序不存在。我想说这意味着你的构建因代码中的错误而失败。


转到构建并单击干净的解决方案。它对我有用。


I'm having problem to run C# Form project (using Visual Studio 2008 professional edition).

When I try to run the project which I already ran, it says "Error while trying to run project:could not load file or assembly 'WindowsFormsApplication1' one of its dependencies. The module was expected to contain an assembly manifest".

After this error im not able to run any Form or any other project. Please tell me why this error occured and a way to fix this problem.

Thank You.

Go to VS command prompt and type devenv.exe /resetskippkgs and Press Enter.

I hope this will solve your problem.


This error means that the application it's trying to run is not there. I would say this means your build failed due to an error in your code.


go to the build and click clean solutions.It worked for me.