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
"frmMain.resources" was correctly embedded or linked into assembly
"ErgosP5".
baseName: frmMain locationInfo: ErgosP5.frmMain resource file name:
frmMain.resources assembly: ErgosP5, Version=1.0.966.18000,
Culture=neutral, PublicKeyToken=null
--------------------------
On the following line inside the #Region " Windows Form Designer generated
code " section
Me.MainMenu1.RightToLeft =
CType(resources.GetObject("MainMenu1.RightToLeft"),
System.Windows.Forms.RightToLeft)
--------------------------
If I comment out the line, it generates the same error on every .GetObject
command in the #Region.
--------------------------
I have not edited the .resx files manually in any way, though I have looked
at them. The form was built as localizable=false and then changed to
localizable=true and I added the "nl" locale. If I turn localizable=false
now I get this error only on the GetObject command for an AxCOMM1 controll,
when changing back to localizable=true with the default locale I get this
error.
---------------------------
This problem can occur when the resource can not be successfully loaded.
Do you have any custom classes defined before the default Form1 class?
Since the compiler use the name of the first class as the default resource
name for the form.
For example, you can find simular lines in the assembly's manifest (Note:
You can check the compiled assemblies using ildasm.exe utility):
mresource public WindowsApplication1.Form1.resources
{
}
As you can see, "Form1" is from the name of the first class in the code
module. If you put another class, "MyClass" for example, before the "Form1"
class, the resource
name will be changed to "WindowsApplication1.MyClass.resources". This makes
the call:
System.Resources.ResourceManager resources = new
System.Resources.ResourceManager(typeof(Form1));
fail to locate the resource.
Hope this helps.
Regards,
Felix Wu
=============
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
>From: "Mark Means" <nospam....@ultrasw.com>
>Subject: "Could not find any resources" error on startup... Please help
>Date: Sat, 24 Aug 2002 10:49:25 -0700
>Lines: 42
>X-Priority: 3
>X-MSMail-Priority: Normal
>X-Newsreader: Microsoft Outlook Express 6.00.2600.0000
>X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
>Message-ID: <u4Syjc5SCHA.2676@tkmsftngp09>
>Newsgroups: microsoft.public.dotnet.languages.vb
>NNTP-Posting-Host: 209.181.121.142
>Path: cpmsftngxa10!cpmsftngxa06!tkmsftngp01!tkmsftngp09
>Xref: cpmsftngxa10 microsoft.public.dotnet.languages.vb:62009
>X-Tomcat-NG: microsoft.public.dotnet.languages.vb