Very odd Satellite Resource issue

Discussion in 'ASP .Net' started by johnnykimble, Aug 30, 2005.

  1. johnnykimble

    johnnykimble Guest


    I'm currently having a problem with a Web Service application that uses
    the standard .net satellite resource mechanism for loading loaclised
    resources. I have a *.resources.dll in a language sub folder in the web
    applications main dll directory.

    I have created an entry in the web.config file for this application
    that specifies the culture that should be used.

    This all works fine, if the setting in the web.config is set to 'nl'
    for example, the Dutch resources are displayed, if set to en-US, the US
    resources are displayed.

    THE PROBLEM however is that after a varying period of time (usually
    about an hour) on the end users system, the resources switch back to
    the default resources in the main applciation dll (in my case English
    US). The only way to get the language back to what it should be is to

    I'm not sure what is causing this strange behaviour, but I have a
    suspicion that it is something to do with where I'm setting the
    Thread(UI)Culture. Currently I'm doing this in the Global.ascx.cs file
    in the [Application_AcquireRequestState] event. Here I read the
    language from the web.config, create a culture based on it, and then
    set the current thread culture and ui culture to it.

    Is this the correct place to be setting the thread culture? Are there
    any other reasons why I might be getting this strange behaviour (only
    noticed on W2k3, and not on all systems)?

    johnnykimble, Aug 30, 2005
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.