W
Weenie the Pooh
We are writing an ASP.Net C# application (VS 2003) and plan to use
embedded resources files for french, german and english UI.
I created resx files named _todo.resx and _todo.fr-CH.resx
Here is part of the code:
....
string txtReturn = "?";
ResourceManager locRM = new ResourceManager("myapp.resources._todo",
Assembly.GetExecutingAssembly());
CultureInfo ci = new CultureInfo("fr-CH");
Thread.CurrentThread.CurrentCulture = ci;
Thread.CurrentThread.CurrentUICulture = ci;
txtReturn = locRM.GetString(keyName);
return txtReturn;
....
Everything works fine on my development environment (Windows XP Pro).
However, when I deploy the application on a Windows 2003 STD server,
the application always use default values.
It behaves as if CurrentUICulture could not be set, but if I display
CurrentUICulture.Name, it shows "fr-CH".
I have tried almost any variations I could find in forums (using
ResourceSet built from ResourceManager, GetString(var, new
CultureInfo("fr-CH")))...).
The thing that drives me nut is the fact that VB applications on th
same server work fine using the same code to access resources, and
that this application works fine on an XP machine.
Any help is welcome.
Some ASP.Net VB applications that we wrote use the same mechanism and
work fine.
embedded resources files for french, german and english UI.
I created resx files named _todo.resx and _todo.fr-CH.resx
Here is part of the code:
....
string txtReturn = "?";
ResourceManager locRM = new ResourceManager("myapp.resources._todo",
Assembly.GetExecutingAssembly());
CultureInfo ci = new CultureInfo("fr-CH");
Thread.CurrentThread.CurrentCulture = ci;
Thread.CurrentThread.CurrentUICulture = ci;
txtReturn = locRM.GetString(keyName);
return txtReturn;
....
Everything works fine on my development environment (Windows XP Pro).
However, when I deploy the application on a Windows 2003 STD server,
the application always use default values.
It behaves as if CurrentUICulture could not be set, but if I display
CurrentUICulture.Name, it shows "fr-CH".
I have tried almost any variations I could find in forums (using
ResourceSet built from ResourceManager, GetString(var, new
CultureInfo("fr-CH")))...).
The thing that drives me nut is the fact that VB applications on th
same server work fine using the same code to access resources, and
that this application works fine on an XP machine.
Any help is welcome.
Some ASP.Net VB applications that we wrote use the same mechanism and
work fine.