473,385 Members | 2,005 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,385 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 1932

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: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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,...

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.