Click to See Complete Forum and Search --> : Language problems


dannystommen
September 8th, 2009, 03:19 AM
I'm not sure if this is the right forum for this post, but anyway, I'm facing the following problem.

I have 2 servers (both Windows Server 2008) where I have some websites en applications. Both servers have the exact same configurations in 'Clock, Language and Region' settings in the control panel. All settings are set to language English - US.

This means the date format is mm/dd/yyyy (where it is here in The Netherlands dd/mm/yyyy). When I enter the date of today (09/08/2009), 1 server says it is Sep 8, 2009, while the other say Aug 9, 2009.

So I take a look at 'System.Threading.Thread.CurrentThread.CurrentCulture'. The first server returns 'en-US' and the other 'nl-NL'. Now we know the cause of the problem. This problem only occurs in a website.

Now, the strange thing is that when I run a windows app on this same server, System.Threading.Thread.CurrentThread.CurrentCulture return 'en-US'. So somehow, the website has another culture info.

Does anyone know what can cause this. I already ckecked the following.
- 'Clock, Language and Region' settings in Windows control panel, they all are the same.
- All settings in IIS. They are also the same.