vb.net 2008 multilingual string display adding resources err:MissingManifestResourcesException
Posted
by Naresh
on Stack Overflow
See other posts from Stack Overflow
or by Naresh
Published on 2010-05-26T08:12:13Z
Indexed on
2010/05/26
11:01 UTC
Read the original article
Hit count: 625
Developing a multilingual application in VB.Net 2008, Im able to add resources to forms and create a multilingual forms depending on uiculture. On reading Msdn on creating the multilingual string values for messagebox contents, have added the .resource file to the project files path as specified. There is no error on compilation but throws the MissingManifestResourceException error
Dim rm As ResourceManager rm = ResourceManager.CreateFileBasedResourceManager("strFormResources", ".", Nothing) Dim ci As CultureInfo ci = New CultureInfo("fr-FR") MessageBox.Show(rm.GetString("sample1", ci))
Could not find any resources appropriate for the specified culture (or the neutral culture) on disk. baseName: strFormResources locationInfo: fileName: strFormResources.resources
There is strFormResources.resources and strFormResources.fr-FR.resources in Resources of the project. I have searched for this error details but could not find a solution. What am i doing wrong or is there any other method for displaying multilingual strings in the messagebox.
Thanks in advance
© Stack Overflow or respective owner