Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Services > Where does the Locale come from for Web Services?

Reply
Thread Tools

Where does the Locale come from for Web Services?

 
 
Eric Mamet
Guest
Posts: n/a
 
      01-28-2004
I am having problems with a small app I wrote where my web services
insist in using US dates while my front end uses European format...

The app was running fine but then my machine was reinstalled
(re-formatted) with Win2K Server and the US locale by default.
I then re-installed all apps, including Visual Studio .Net.
Recompiled and setup my ASP.Net projects.

Then only I noticed the locale being US and I changed it for both my
account and the system default to UK.
Rebooted.

It looks like my Web Services carry on running in a US locale
environment (01/28/04) while the front-end (VB.Net windows App)
prefers 28/01/04...
Where is this coming from?

Could it be the locale of the user ASPNET? I can't find where to
check/change this.


Thanks


Eric Mamet
 
Reply With Quote
 
 
 
 
Jan Tielens
Guest
Posts: n/a
 
      01-28-2004
Since your webservices probably run (if you haven't changed anything) under
the ASP.NET account, this account will provide the locale.

If you want to change this, you can do this at run-time using the
CurrentCulture property of the CurrentThread. More info:
http://tinyurl.com/287jx

--
Greetz,
Jan
__________________________________
Read my weblog: http://weblogs.asp.net/jan
"Eric Mamet" <(E-Mail Removed)> schreef in bericht
news:(E-Mail Removed) om...
> I am having problems with a small app I wrote where my web services
> insist in using US dates while my front end uses European format...
>
> The app was running fine but then my machine was reinstalled
> (re-formatted) with Win2K Server and the US locale by default.
> I then re-installed all apps, including Visual Studio .Net.
> Recompiled and setup my ASP.Net projects.
>
> Then only I noticed the locale being US and I changed it for both my
> account and the system default to UK.
> Rebooted.
>
> It looks like my Web Services carry on running in a US locale
> environment (01/28/04) while the front-end (VB.Net windows App)
> prefers 28/01/04...
> Where is this coming from?
>
> Could it be the locale of the user ASPNET? I can't find where to
> check/change this.
>
>
> Thanks
>
>
> Eric Mamet



 
Reply With Quote
 
 
 
 
Eric Mamet
Guest
Posts: n/a
 
      01-30-2004
For those interested, the answer/fix was to modify the globalization
tag in my machine.config file (language was "neutral", set it to
"en-GB")
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
the relation between C++ locale and C locale zade C++ 1 03-05-2010 06:04 PM
Re: List of locale values for locale.setlocale() under Windows Gabriel Genellina Python 0 02-18-2009 12:00 AM
Create C++ std::locale without changing C locale dertopper@web.de C++ 4 08-26-2008 01:15 PM
i18n problem, involving Locale.getDisplayLanguage and Locale.getDisplayCountry Maurice Hulsman Java 1 07-25-2004 06:11 PM
locale.nl_langinfo(RADIXCHAR) vs locale.localeconv()['decimal_point'] Jeff Epler Python 2 08-31-2003 02:18 PM



Advertisments