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")))...), but none solve the problem.

The thing that drives me nut is the fact that VB applications on the
same server work perfectly using the same type of code to access
resources, and that this application works fine on an XP machine.

Any help is welcome.

Thank you.
 
N

.NET Follower

are u using satellite assemblies
actually i am not giving solution
just curious to know
 

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,769
Messages
2,569,578
Members
45,052
Latest member
LucyCarper

Latest Threads

Top