Yeah just random thoughts & tries for now...
What if you try a *Windows* .NET based application on the server that you'll
run under a regular account. Do you have the same result ? In case it would
work what if you make your ASP.NET application run under the same account ?
I'm not sure how .NET get these info (my understanding at least for 2.0
would be that they are build right into the framework ??). If the FW uses
system files to get those info then it could be a system level problem with
nls support files and I belive I saw once this in classic ASP and it was a
profile related issue...
--
Good luck, sorry for the poor help
"Basildk" <Th*************@gmail.coma écrit dans le message de news:
11**********************@o80g2000hse.googlegroups. com...
On 30 Aug., 17:51, Basildk <Thomasboniel...@gmail.comwrote:
On 30 Aug., 17:48, Basildk <Thomasboniel...@gmail.comwrote:
On 30 Aug., 17:30, "Patrice" <http://www.chez.com/scribe/wrote:
What if you display CurrentUICulture ?
---
Patrice
"Basildk" <Thomasboniel...@gmail.coma écrit dans le message de news:
1188487053.814585.41...@22g2000hsm.googlegroups.co m...
Hi.
I have a strange problem. We have an asp.net application running on
several server with different setups.
On 2 of our servers we experience that the globalization settings
are
misbehaving.
We have boiled the problem down to this: (exemplified by a very
simple
page)
protected void Page_Load(object sender, EventArgs e)
{
Response.Write(Thread.CurrentThread.CurrentCulture .Name + "<br />");
Response.Write(2.ToString("c", Thread.CurrentThread.CurrentCulture)
+
"<br />");
Response.Write(DateTime.Now.ToString() + "<br />");
}
Output is the following:
da-DK
$2.00
8/30/2007 5:14:02 PM
Since currentCulture is "da-DK" i would have expected the something
like the following:
kr 2.00
30-08-2007
This is in fact the result coming from the servers that are working.
How come the Culture is not formatting the values correctly?
Thanks for the help..
That displays en-US, but as far as i know, that does not affect
formatting?
I just tried setting CurrentUICulture to "da-DK", but with the same
result..
I researched a little further:
If i insert the following code:
Response.Write("Language " + cultureInfo.Name + "<br />");
Response.Write("---------------------------------<br />");
Response.Write("CurrencySymbol " +
cultureInfo.NumberFormat.CurrencySymbol.ToString() + "<br />");
Response.Write("DateSeparator " +
cultureInfo.DateTimeFormat.DateSeparator + "<br />");
Response.Write("LongDatePattern " +
cultureInfo.DateTimeFormat.LongDatePattern.ToStrin g() + "<br />");
Response.Write("ShortDatePattern " +
cultureInfo.DateTimeFormat.ShortDatePattern.ToStri ng() + "<br />");
string[] days = cultureInfo.DateTimeFormat.DayNames;
for( int i = 0; i < days.Length; i++)
{
Response.Write(days[i] + "<br />");
}
Response.Write("---------------------------------<br />");
I get the following output:
Language da-DK
---------------------------------
CurrencySymbol $
DateSeparator /
LongDatePattern dddd, MMMM dd, yyyy
ShortDatePattern M/d/yyyy
søndag
mandag
tirsdag
onsdag
torsdag
fredag
lørdag
In other words: Some of the values are perfect danish (the days) while
others are stille american (datepattern, dateseperator and
currencySymbol)
I am puzzled:)