App_GlobalResources file inconsistency

Nov 27, 2011 at 1:27 PM

I have nearly pulled all of my hair while trying to sort this out. I don't know how to explain the problem either. Here it is:

I have two resource file inside App_GlobalResources folder:


I am using them along with mvcsitemapprovider and here how I use them:

<mvcSiteMap xmlns="" enableLocalization="true">
  <mvcSiteMapNode title="$resources:SiteMapLocalizations, Home" controller="default" action="index" key="default_index">
    <mvcSiteMapNode title="$resources:SiteMapLocalizations, Corporate" controller="corporate" action="index">
      <mvcSiteMapNode title="$resources:SiteMapLocalizations, Contact" controller="corporate" action="contact" />
      <mvcSiteMapNode title="$resources:SiteMapLocalizations, About" controller="corporate" action="about" />

It works great but not always. 

I have a culture swither inside my app and when I switch the thread culture, it displays the proper values but sometimes tr culture values comes empty when the culture is set to tr.

After that I go to resource files and make a change and save and then it starts working sometimes.

Is this a comman problem with App_GlobalResources files?