Chorn Sokun’s Weblog

try { divide and conquer; } catch { keep it simple!; } finally { nothing is impossible; }

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?

Written by Chorn Sokun

September 10, 2008 at 2:03 pm

Leave a Reply