473,503 Members | 1,768 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Deploy a new resource assembly

Hi,

I will present you a virtual scenario. Here it is.

Say, we develop a web app consisting in one page only.
The page displays a culture-dependent text and a switch (as a dropdown list)
to select one of 20 possible languages. Changing the language entails
changing the text.
At current time, the app supports only 5 cultures - having a resources file
for each of the 5 cultures.
The app is to be deployed (in its precompiled version) on the "customer"
system.
Becuase only 5 languages are available, selecting one the other languges
will set the text to the default language.

Now, after the app was deployed, it should be possible to deploy new
satellite assemlies for new languages as the transalations become available.

Here it is what I did in order to achive that (it did not work):
1. By default, the app comes with 2 languages: English (default) and German.
The bin folder contains the "de-DE" subfolder that contains the satellite
assembly for German resources.
2. With VS2005 I've created a new resx file for a new culture (Romanian).
3. I've generated the binary file out of the resx file with the "resgen"
tool.
4. I've genereted the new satellite assembly for Romanian resources with the
"al" tool.
5. Under the bin folder, I've created the "ro-RO" subfolder where I deployed
the new assembly.
6. I've restarted the IIS server and stopped the ASP.NET worker process.
7. I've browsed to the web page and switched the language to "Romania" - the
code behind set the Thread.CurrentCulture and Thread.CurrentUICulture
properties to "new CultureInfo("ro-RO")".
8. I've been expecting that the text will change to the Romaian text.. but
it still shows the default Language :(.

I mention that switching between the 5 initially supported language, the app
behaves as expected.

Do you know where I'm wrong or how else could I add/deploy new resources
without recompling the app?

Thanks a lot,
Mircea
Feb 21 '07 #1
0 1219

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

Similar topics

0
1475
by: mqsash | last post by:
Hi Problem : Unable to deploy an assembly in IE, as a cab file. (Works fine when deployed as a dll ) Description : I have created a assembly (dll with no user interface)in C# which I deploy in...
3
1601
by: platinumbay | last post by:
Is it possible to change embedded resource files at runtime, i.e. after the Assembly has been compiled? Thanks much
2
5482
by: mqsash | last post by:
Hi Problem : Unable to deploy an assembly in IE, as a cab file. (Works fine when deployed as a dll ) Description : I have created a assembly (.dll) in C# which I deploy in IE. The dll name is...
5
8195
by: Drew | last post by:
Assembly asm = Assembly.GetExecutingAssembly(); me = new Bitmap(asm.GetManifestResourceStream("me.gif")); I have used this before without any problem, but now I get: An unhandled exception...
12
2032
by: bj7lewis | last post by:
I am working on a project I want to add a few files as resource to access(copy them to FS and use) at runtime. So far in VS.NET IDE, I Add Files to the project and set its Build Action to...
0
1622
by: ATS | last post by:
HOWTO Make a UserControl deploy an embedded resource. Please help, I need to embed an EXE into a C# UserControl that is run from script in an HTML web page as such: <html> <object...
0
2179
by: Johann Blake | last post by:
I'm having trouble grasping how ASP.NET correctly locates resources. There is plenty of documentation on this subject but some things are not clear at all. In my ASP.NET application, I have...
0
1539
by: Ashutosh | last post by:
---------------------------------------------------------------------------- ---- Parser Error Description: An error occurred during the parsing of a resource required to service this request....
12
5241
by: TS | last post by:
i have a need to possibly enable mutli language support. What benefit do i get by using a resource file instead of a custom xml solution? thanks!
0
7076
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
7323
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
7453
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
4670
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3162
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3151
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1507
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
732
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
377
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.