473,406 Members | 2,439 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

ResourceManager and localization problem with Windows Server 2003

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.
Nov 18 '05 #1
1 1934

are u using satellite assemblies
actually i am not giving solution
just curious to know
--
Thanks and Regards,

Amit Agarwal
Software Programmer(.NET)
"Weenie the Pooh" <rm****@lanexpert.ch> wrote in message
news:96**************************@posting.google.c om...
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.

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.586 / Virus Database: 371 - Release Date: 2/12/2004
Nov 18 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Nils Erik Asmundvaag | last post by:
Hello I hope someone is able to help me with this frustrating problem. I have a C# web project in Visual Studio .NET 2003. I want to support Swedish and Norwegian texts and have put the texts...
0
by: Bill | last post by:
Hi Everyone, I am having some difficulty in using the Windows Resource Localization Editor (WinRes.exe) on several Visual Basic .NET forms (.resx files) in two different projects. The editor...
3
by: Eric | last post by:
Hi, I'm just looking into the samples that are delivered withthe Enterprise Localization Framework/Toolkit. I have set it up and it all works fine. But.. now i have a question. I read a...
0
by: Weenie the Pooh | last post by:
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...
6
by: Rental | last post by:
I'm having the sam problem as described below with the Localization toolkit. Does anyone know if there is a solution to this problem. --->When attempting to generate resource dlls with...
0
by: steven | last post by:
I have an asp.net webapp running on W2K server with .net framework 1.1 The intranet-app supports 2 languages: dutch (fallback language) and french. The choice is made with 'Request.UserLanguages'...
3
by: Maileen | last post by:
Hi, I've created an assembly where are stores some strings. By using menu items, user can change language of application GUI (so using the strings in my assemblies) 1. how can i compile my...
5
by: CMM | last post by:
I don't seem to "get" ASP.NET 2.0's Localization features. I've read up on everything... and of course, everything is explained in cursory softball terms- not any "real-world" usage way. I hope...
3
by: Corey B | last post by:
I have an ASP.NET application that was built in ASP.NET v1.1. It has a SQL Server back end database. I have been asked to provide an estimate for the level of effort required to produce a Chinese...
2
by: =?Utf-8?B?QnJhZCBBc2hmb3J0aA==?= | last post by:
We have the environment mentioned above. The Server OS is Windows Server 2003 SP2 and the client machine is XPPro SP 2. Several years ago we coded the application to "support localization". At that...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.