Chorn Sokun's Weblog

Conquer inner fear, push it to the limit!

ASP.NET Globalization & Localization Take #2

leave a comment »

In my previous post “.Net 2.0 App_GlobalResources within VS.NET 2008” I was successfully manipulate string stored in satellite assembly that was the isolation test to make sure that thing work. 

ASP.NET Web Application Basic Structure

ASP.NET Web Application Basic Structure

The next move is to integrate the technique with my MonoRail solution. In theory the trick should work like magic;

Castle Basic Structure

Castle Basic Structure

BUT nope I got nothing in return I verify the satellite assembly through Reflection nothing different. So what the heck is going on ???

Now take a look at how I solved the mismatch:

ASP.NET Web Application

ResourceManager rm = new ResourceManager(
   "Web.Applications2.Strings", Assembly.GetExecutingAssembly());

Castle.MonoRail

ResourceManager rm = new ResourceManager(
   "Basic.Web.Resources.Strings", Assembly.GetExecutingAssembly());

Can you spot the different?

Advertisements

Written by Chorn Sokun

September 10, 2008 at 2:03 pm

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: