ResourceManager and localization problem with Windows Server 2003

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,534
Members
45,008
Latest member
Rahul737

Latest Threads

Top