Very odd Satellite Resource issue

J

johnnykimble

Hi,

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
reboot.

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)?

Thanks
 

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. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,007
Latest member
obedient dusk

Latest Threads

Top