在vs2010 c中运行Windows窗体应用程序时出错 [英] Error in running windows form application in vs2010 c#

查看:142
本文介绍了在vs2010 c中运行Windows窗体应用程序时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在c#VS2010中的Windows窗体应用程序无法正常工作,并提示消息模块应该包含程序集清单,即使在简单项目中也是如此。怎么解决这个问题?







先谢谢

解决方案

基本上,你试图使用一些可执行模块(PE文件),假设这是一个有效的.NET程序集,但它不是。



我不知道你为什么以及如何做到这一点,但这个答案应该给你这个想法。程序集清单是PE文件的一部分,其内容标识该模块作为某些.NET程序集的主要可执行模块并提供对其元数据的访问。 .NET运行时首先将模块标识为这样的.NET模块,如果不是,则抛出此异常。



-SA

My windows form application in c# VS2010 is not working properly and prompting the message "the module was expected to contain an assembly manifest" even in simple projects. How to solve this?



Thanks in Advance

解决方案

Basically, you are trying to use some executable module (PE file) assuming this is a valid .NET assembly, but it is not.

I have no idea why and how you are trying to do that, but this answer should give you the idea. Assembly manifest is a section of a PE file with the content identifying that the module as a main executable module of some .NET assembly and providing access to its metadata. .NET runtime starts with identifying the module as such a .NET module, and, in case it is not, this exception is thrown.

—SA


这篇关于在vs2010 c中运行Windows窗体应用程序时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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