User1648372490 posted
Hi,
We are implementing a produt it should support multilanguges and user can update the resource files
we r implementing ui for updating resource files
we have a App_GlobalResources folder in that we kept resx files like
sample.fr-FR.resx
sample.resx
after publishing in bin folder App_GlobalResources.dll and languages specific folder(fr-FR ) in fr-FR folder we have
App_GlobalResources.resources.dll
now for updating the sample.fr-FR.resx file at runtime i am using the following code to load resource file
rm = new ResourceManager("sample.fr-FR", Assembly.LoadFrom("C:/Example/bin/fr-FR/App_GlobalResources.resources.dll"));
ci = new CultureInfo("fr-FR");
ResourceSet res = rm.GetResourceSet(ci, true , true );
IDictionaryEnumerator resEnum = res.GetEnumerator();
while (resEnum.MoveNext())
{
if (resEnum.Entry.Value.ToString() != "")
{
dr = dt.NewRow();
dr["Key"] = resEnum.Entry.Key.ToString();
dr["Value"] = resEnum.Entry.Value.ToString();
dt.Rows.Add(dr);
}
}
now i am getting error at this line ResourceSet res = rm.GetResourceSet(ci, true , true ); that is
"Could not find any resources appropriate for the specified culture or the neutral culture. Make sure "Sample.fr-FR.resources"
was correctly embedded or linked into assembly "App_GlobalResources.resources" at compile time,
or that all the satellite assemblies required are loadable and fully signed."
how to solve this problem
any one can help me