PC Review


Reply
Thread Tools Rate Thread

System.Resources.MissingManifestResourceException

 
 
Peter
Guest
Posts: n/a
 
      10th Dec 2003
I get the following error with a single form during runtime:

"System.Resources.MissingManifestResourceException: Could not find any
resources appropriate for the specified culture..." etc.

The error is raised during InitializeComponent on the following line:

Me.Button1.Image = CType(resources.GetObject("Button1.Image"),
System.Drawing.Bitmap)

If I reselect the image and rebuild the project, the error goes away, at
least for a while until it reoccurs after a later build.

There is no other code in the source file, only the form code. The form
does inherit from a form template class we have created, although the 50 or
so other similar forms never experience this problem.

Any assistance would be appreciated.


 
Reply With Quote
 
 
 
 
Alexander
Guest
Posts: n/a
 
      11th Dec 2003
Hi,

if you assign an image to a button the designer takes it
an puts it into the associated .resx file (toggle show
all in solution explorer). Looks as if you use that file
now and then.

hih,
AJ
(E-Mail Removed)

>-----Original Message-----
>I get the following error with a single form during

runtime:
>
>"System.Resources.MissingManifestResourceException:

Could not find any
>resources appropriate for the specified culture..." etc.
>
>The error is raised during InitializeComponent on the

following line:
>
>Me.Button1.Image = CType(resources.GetObject

("Button1.Image"),
>System.Drawing.Bitmap)
>
>If I reselect the image and rebuild the project, the

error goes away, at
>least for a while until it reoccurs after a later build.
>
>There is no other code in the source file, only the form

code. The form
>does inherit from a form template class we have created,

although the 50 or
>so other similar forms never experience this problem.
>
>Any assistance would be appreciated.
>
>
>.
>

 
Reply With Quote
 
Peter
Guest
Posts: n/a
 
      12th Dec 2003
Thanks for the response, AJ.

Do you or anyone else have any idea why the resource file for this
particular form might be losing it's connection to it's resources?


"Alexander" <(E-Mail Removed)> wrote in message
news:0da901c3bfea$6e2903a0$(E-Mail Removed)...
> Hi,
>
> if you assign an image to a button the designer takes it
> an puts it into the associated .resx file (toggle show
> all in solution explorer). Looks as if you use that file
> now and then.
>
> hih,
> AJ
> (E-Mail Removed)
>
> >-----Original Message-----
> >I get the following error with a single form during

> runtime:
> >
> >"System.Resources.MissingManifestResourceException:

> Could not find any
> >resources appropriate for the specified culture..." etc.
> >
> >The error is raised during InitializeComponent on the

> following line:
> >
> >Me.Button1.Image = CType(resources.GetObject

> ("Button1.Image"),
> >System.Drawing.Bitmap)
> >
> >If I reselect the image and rebuild the project, the

> error goes away, at
> >least for a while until it reoccurs after a later build.
> >
> >There is no other code in the source file, only the form

> code. The form
> >does inherit from a form template class we have created,

> although the 50 or
> >so other similar forms never experience this problem.
> >
> >Any assistance would be appreciated.
> >
> >
> >.
> >



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
System.Resources.MissingManifestResourceException Peri Microsoft Dot NET 1 30th Apr 2008 10:20 AM
'System.Resources.MissingManifestResourceException' =?Utf-8?B?UGFyYWNsZXRl?= Microsoft Dot NET Framework Forms 3 29th Aug 2006 03:13 PM
System.Resources.MissingManifestResourceException =?Utf-8?B?U2hlc2hhZHJpbmF0aCBS?= Microsoft Dot NET Framework 1 9th Nov 2005 02:44 PM
'System.Resources.MissingManifestResourceException' =?Utf-8?B?TmF2ZWVuIE11a2tlbGxp?= Microsoft C# .NET 0 17th Feb 2005 07:21 AM
'System.Resources.MissingManifestResourceException' Jesse Microsoft C# .NET 3 30th Oct 2003 08:58 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:54 PM.