Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / WinForm General / August 2006

Tip: Looking for answers? Try searching our database.

'System.Resources.MissingManifestResourceException'

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Paraclete - 29 Aug 2006 01:00 GMT
Hi All,
I am working on a winforms project. There are couple of .bmp images in the
main form. Previously it was running ok. But today, I changed couple of
controls in the designer and then the following exception started to appear.
Does any one know how to work around this thing and why it is coming. One
thing that may be of interest to know that when I delete these picture
controls it stops. I am using VS.NET 2003 and framework verion 1.1.

Below is the line on which the following exception occurs.

this.MyPic.Image =
((System.Drawing.Image)(resources.GetObject("MyPic.Image")));

The exception that is thrown is:

An unhandled exception of type
'System.Resources.MissingManifestResourceException' occurred in mscorlib.dll

Additional information: Could not find any resources appropriate for the
specified culture (or the neutral culture) in the given assembly.  Make sure
"MyFrm.resources" was correctly embedded or linked into assembly "MyApp".
baseName: MyFrm  locationInfo: MyApp.MyFrm  resource file name:
MyFrm.resources  assembly: MyApp, Version=1.0.2431.33755, Culture=neutral,
PublicKeyToken=null

Your Help will be greatly appriciated.
Thanks,
Nasir
Herfried K. Wagner [MVP] - 29 Aug 2006 01:20 GMT
"Paraclete" <Paraclete@discussions.microsoft.com> schrieb:
> I am working on a winforms project. There are couple of .bmp images in the
> main form. Previously it was running ok. But today, I changed couple of
[quoted text clipped - 14 lines]
> 'System.Resources.MissingManifestResourceException' occurred in
> mscorlib.dll

If you are using an application manifest file for "devenv.exe" in order to
enable Windows XP visual styles inside the IDE, remove the manifest file.
Maybe you'll have to recreate the forms' resources.

Signature

M S   Herfried K. Wagner
M V P  <URL:http://dotnet.mvps.org/>
V B   <URL:http://dotnet.mvps.org/dotnet/faqs/>

Paraclete - 29 Aug 2006 14:13 GMT
Hi Wagner,
I am not using any xp styles or any multilingual stuff.
Thanks,
Paraclete

> "Paraclete" <Paraclete@discussions.microsoft.com> schrieb:
> > I am working on a winforms project. There are couple of .bmp images in the
[quoted text clipped - 19 lines]
> enable Windows XP visual styles inside the IDE, remove the manifest file.
> Maybe you'll have to recreate the forms' resources.
FUnky - 29 Aug 2006 10:38 GMT
System.Resources.ResourceManager resources = new
System.Resources.ResourceManager("MyApp.MyFrm",Assembly.GetExecutingAssembly());
//typeof(MyFrm));

try the above in place of typeof in your initializecomponent.

FUnky

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.