尝试运行项目时出错:无法加载文件或程序集"WindowsFormsApplication1"或其依赖项之一.该模块应包含一个程序集清单. [英] Error while trying to run project: Could not load file or assembly 'WindowsFormsApplication1' or one of its dependencies. The module was expected to contain an assembly manifest.

查看:106
本文介绍了尝试运行项目时出错:无法加载文件或程序集"WindowsFormsApplication1"或其依赖项之一.该模块应包含一个程序集清单.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的项目面临新问题

昨天它运行良好..我关闭了系统,今天又回到了该项目的工作中,

显示错误

尝试运行项目时出错:无法加载文件或程序集"Amber"或其依赖项之一.该模块应包含一个程序集清单.

我在Google中搜索并完成了以下操作来解决此问题...
1.我将我的项目设置为启动项目
但没有用
2.删除了Temp文件夹
然后也会出现相同的错误
3.我删除了所有引用,并重新添加了
但存在相同的错误

现在...我创建了一个新项目"WindowsFormsApplication1",并放置了一个默认的空白表单
即使我运行了这个简单的表单项目,也遇到了相同的问题

尝试运行项目时出错:无法加载文件或程序集"WindowsFormsApplication1"或其依赖项之一.该模块应包含一个程序集清单.

请帮助我解决这个问题
我不理解这个问题,但是,这是在我的项目或Visual Studio中
我整个一个月的工作似乎都没了,,、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、 >要验证......

您创建了一个新的WinForms应用程序,您没有以任何方式(没有程序集引用)添加任何代码.因此,解决方案中唯一的东西就是Microsoft的东西.

如果那是正确的,只有那是正确的....

您可以尝试关闭防火墙/防病毒应用程序.然后尝试新的WinForms项目.有时,他们可以与包括文件在内的系统资源进行疯狂的交互.没关系,但值得在继续之前尝试一下.当然,在测试后将其恢复原状.

否则,如果是我,我会认为系统上已损坏或已卸载某些东西.

如果WinForms需要额外的MS安装(标准.Net除外),则我将其卸载,然后重新安装.尝试新的WinForms测试.

最后,我将卸载VS IDE并重新安装.我还将查看.Net版本(1到4)是否在安装/卸载选项中允许使用修复"模式.)


在您的项目代码中,您缺少一些汇编文件.要知道您的代码中缺少哪个程序集文件,您可以在解决方案资源管理器中展开引用"选项,并且所丢失的文件将带有错误标记.要添加此文件,只需写上引用,然后添加引用即可.您可以添加来自计算机,.net或已使用项目的引用作为您的项目的引用.


I am facing a new problem with my project

Yesterday it worked good.. I shutdown my system and came back to my work with the project today,

it is showing the error

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

I searched in google and done the following to solve this problem......
1. I set my project as startup project
but no use
2. Deleted the Temp folder
then also getting same error
3. I Removed all the references and added freshly
but same error exists

Now...I created a new project "WindowsFormsApplication1" and placed a default empty form
Even if I run this simple form project, I am getting same problem

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

plz help me to solve this problem
I am not understanding the problem,,, wheather it is in my project or visual studio
my entire one month work is seems to be gone,,,,,,,,,,,,,,,plz help me,,,,,,

解决方案

To validate....

You created a new WinForms app, you did NOT add any of your any code in any way (no assembly references). So the only thing in the solution was Microsoft stuff.

If that is correct and ONLY if that is correct....

As a wild possibility you could try turning off your firewall/anti-virus apps. Then try the new WinForms project. Sometimes they can have wild interactions with system resources including files. Shouldn''t matter but worth a try before proceeding. Of course turn it back after the test.

Otherwise if it was me I would presume something had been corrupted on the system or had been uninstalled.

If WinForms requires some additional MS install (besides standard .Net) then I would uninstall it then re-install. Try the new WinForms test.

Finally I would uninstall the VS IDE and re-install. I would also see if .Net versions (1 through 4) allow for a ''fix'' mode in the install/uninstall options.)


In your project code you missing some assembly file. to know which assembly file is missing in your code you expand the reference option in the solution explorer and the missing file is colored with error mark. to add this file just write click on the reference and add the references. you can add the references from computer, form .net or used project as reference for your project.


这篇关于尝试运行项目时出错:无法加载文件或程序集"WindowsFormsApplication1"或其依赖项之一.该模块应包含一个程序集清单.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆