mscorlib.dll中的'System.Resources.MissingManifestResourceException' [英] 'System.Resources.MissingManifestResourceException' in mscorlib.dll

查看:228
本文介绍了mscorlib.dll中的'System.Resources.MissingManifestResourceException'的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好.
我有一个问题.
当我通过向导在Visual Studio 2010 Professional中创建新的Form项目时
我在这样的控件中使用一些图像:

Hello to everybody.
I have a question.
When I create a new Form project in Visual Studio 2010 Professional by Wizard
and I use some Image in controls like this:

this.button1.Image = global::WindowsFormsApplication1.Properties.Resources.Image1;


当我启动项目时,应用程序引发了异常

System.Resources.MissingManifestResourceException'' in mscorlib.dll

在"Resources.Designer.cs"中


when I launch the project the application thrown an Exception

System.Resources.MissingManifestResourceException'' in mscorlib.dll

in "Resources.Designer.cs"

internal static System.Drawing.Bitmap Image1 {
    get {
        object obj = ResourceManager.GetObject("Image1", resourceCulture);
        return ((System.Drawing.Bitmap)(obj));
    }
}


有人可以帮我吗?
在建议中感谢您


Can someone help me ??
Thankyou in advice

推荐答案

我认为这是一个已知的错误:
http://support.microsoft.com/kb/318603 [
I think it''s a known bug:
http://support.microsoft.com/kb/318603[^]

Hope this helps,
Fredrik


我阅读了技术支持,但不是我的情况:

我正在使用VS2010(不是VS2003或VS2005)
并且资源没有以特定的形式定位,
它们是项目全局的.
I read the tech support but it is not my case:

I''m using VS2010 (not VS2003 or VS2005)
and the resource are not locate in a particular Form,
they are project-global.


这篇关于mscorlib.dll中的'System.Resources.MissingManifestResourceException'的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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