今天在给一个程序加入imagelist的时候碰到了这样的运行错误:
【程序编程相关:在DataGrid中为Footer添加自】 【推荐阅读:抓取网页中的链接】未能在给定的程序集中找到任何适合于指定的区域性(或非特定区域性)的资源.请确保已将“frmmain.resources”正确嵌入或链接到程序集“xxx”. 【扩展信息:在ASP.NET中动态创建柱状图和饼图】 basename: yyy locationinfo: xxx.yyy resource file name: yyy.resources assembly: xxx, version=1.0.1698.16471, culture=neutral, publickeytoken=null 其实之前在给这个程序的主窗口自定义icon的时候也碰到过同样的问题,只是当时没有注意. 查找资料,在微软的支持站点发现如下文章: http://support.microsoft.com/default.aspx?scid=kb;en-us;q318603 prb: error when you access .resources file of the form at run time article id : 318603 last review : august 7, 2003 revision : 2.0 this article was previously published under q318603 on this page symptoms cause resolution status more information symptoms when you are running your visual basic .net, visual c# .net, or visual j# .net windows application, you may receive the following error message or a similar one when you load a form: an unhandled exception of type ´system.resources.missingmanifestresourceexception´ occurred in mscorlib.dll ... 下一页