473,323 Members | 1,547 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,323 software developers and data experts.

Regional settings in IIS6

Dear All,

I am trying to set a webserver to use French regional settings for testing
ASP pages.

According to http://support.microsoft.com/kb/q306044, for IIS5, this is a
matter of changing the regional settings for the authenticated user, and if
this user does not have a user profile then the default regional settings.

Unfortunately, this does not seem to be working in IIS6, in that I have
change the default user's settings and I am still getting English dates. Can
anyone tell me if this is because the way IIS chooses its settings has
changed for IIS6 or just because I have done something wrong?

Thanks,

Jonathan
Jul 22 '05 #1
4 15826
Jonathan wrote:
Dear All,

I am trying to set a webserver to use French regional settings for
testing ASP pages.

According to http://support.microsoft.com/kb/q306044, for IIS5, this
is a matter of changing the regional settings for the authenticated
user, and if this user does not have a user profile then the default
regional settings.


You've misread it:
-------------------------------------------------
When you use the Now, Date, or Time functions from Active Server Pages
(ASP), the Date and Time formats differ depending on parameters such as the
impersonating user, the authenticating user, the logged-on user, and the
version of the operating system on the server.

NOTE: Unless you specifically impersonate some user, the impersonating user
is the same as the authenticating user. In addition, the logged-on user
refers to the person who is logged on to the server,
-------------------------------------------------

In IIS, by default, the authenticating user is the IUSR_MachineName account
(known in some OSs as the Internet Guest Account). When this account is
created, it is created with the default regional settings: US. You can hunt
for the user's entry in the Registry and change it, or see:
http://www.aspfaq.com/show.asp?id=2260

Bob Barrows
--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"
Jul 22 '05 #2
Sorry, my mistake, although I should have mentioned that I am using Windows
Authentication, in which case I am under the impression that the
authentication user is the same user as the impersonated user. As the user
will never usually have logged onto the computer, I would expect the default
user's regional settings to be used.

"Bob Barrows [MVP]" wrote:
Jonathan wrote:
Dear All,

I am trying to set a webserver to use French regional settings for
testing ASP pages.

According to http://support.microsoft.com/kb/q306044, for IIS5, this
is a matter of changing the regional settings for the authenticated
user, and if this user does not have a user profile then the default
regional settings.


You've misread it:
-------------------------------------------------
When you use the Now, Date, or Time functions from Active Server Pages
(ASP), the Date and Time formats differ depending on parameters such as the
impersonating user, the authenticating user, the logged-on user, and the
version of the operating system on the server.

NOTE: Unless you specifically impersonate some user, the impersonating user
is the same as the authenticating user. In addition, the logged-on user
refers to the person who is logged on to the server,
-------------------------------------------------

In IIS, by default, the authenticating user is the IUSR_MachineName account
(known in some OSs as the Internet Guest Account). When this account is
created, it is created with the default regional settings: US. You can hunt
for the user's entry in the Registry and change it, or see:
http://www.aspfaq.com/show.asp?id=2260

Bob Barrows
--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"

Jul 22 '05 #3
No. You need to go back and read the documentation.

I suggest that you not rely on Registry settings which can be changed
without your knowledge. Instead, explicitly set the locale in your
applications using the advice given in the aspfaq article.

Bob Barrows

Jonathan wrote:
Sorry, my mistake, although I should have mentioned that I am using
Windows Authentication, in which case I am under the impression that
the authentication user is the same user as the impersonated user. As
the user will never usually have logged onto the computer, I would
expect the default user's regional settings to be used.

"Bob Barrows [MVP]" wrote:
Jonathan wrote:
Dear All,

I am trying to set a webserver to use French regional settings for
testing ASP pages.

According to http://support.microsoft.com/kb/q306044, for IIS5, this
is a matter of changing the regional settings for the authenticated
user, and if this user does not have a user profile then the default
regional settings.


You've misread it:
-------------------------------------------------
When you use the Now, Date, or Time functions from Active Server
Pages (ASP), the Date and Time formats differ depending on
parameters such as the impersonating user, the authenticating user,
the logged-on user, and the version of the operating system on the
server.

NOTE: Unless you specifically impersonate some user, the
impersonating user is the same as the authenticating user. In
addition, the logged-on user refers to the person who is logged on
to the server, -------------------------------------------------

In IIS, by default, the authenticating user is the IUSR_MachineName
account (known in some OSs as the Internet Guest Account). When this
account is created, it is created with the default regional
settings: US. You can hunt for the user's entry in the Registry and
change it, or see: http://www.aspfaq.com/show.asp?id=2260

Bob Barrows
--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so
I don't check it very often. If you must reply off-line, then remove
the "NO SPAM"


--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.
Jul 22 '05 #4
Dear Bob,

Thanks for your comments.

1)I have reread the IIS6 documentation and it still seems to suggest to me
that the authenticated user is the same as the impersonated user:
"However, when a client request is processed, the thread processing the
request uses a token associated with the client, also know as the
authenticated user's token, during the duration of the request. This is known
as impersonation"

2) I have seen the ASPFAQ article you mention, however I do not want to
simply set the locale, but also be able to customize the exact format used by
the long date and decimal seperator. Is this possible in IIS6?

Jonathan

"Bob Barrows [MVP]" wrote:
No. You need to go back and read the documentation.

I suggest that you not rely on Registry settings which can be changed
without your knowledge. Instead, explicitly set the locale in your
applications using the advice given in the aspfaq article.

Bob Barrows

Jonathan wrote:
Sorry, my mistake, although I should have mentioned that I am using
Windows Authentication, in which case I am under the impression that
the authentication user is the same user as the impersonated user. As
the user will never usually have logged onto the computer, I would
expect the default user's regional settings to be used.

"Bob Barrows [MVP]" wrote:
Jonathan wrote:
Dear All,

I am trying to set a webserver to use French regional settings for
testing ASP pages.

According to http://support.microsoft.com/kb/q306044, for IIS5, this
is a matter of changing the regional settings for the authenticated
user, and if this user does not have a user profile then the default
regional settings.
You've misread it:
-------------------------------------------------
When you use the Now, Date, or Time functions from Active Server
Pages (ASP), the Date and Time formats differ depending on
parameters such as the impersonating user, the authenticating user,
the logged-on user, and the version of the operating system on the
server.

NOTE: Unless you specifically impersonate some user, the
impersonating user is the same as the authenticating user. In
addition, the logged-on user refers to the person who is logged on
to the server, -------------------------------------------------

In IIS, by default, the authenticating user is the IUSR_MachineName
account (known in some OSs as the Internet Guest Account). When this
account is created, it is created with the default regional
settings: US. You can hunt for the user's entry in the Registry and
change it, or see: http://www.aspfaq.com/show.asp?id=2260

Bob Barrows
--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so
I don't check it very often. If you must reply off-line, then remove
the "NO SPAM"


--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.

Jul 22 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Grumfish | last post by:
Is there a way to tell Java what localization to use so applications and the compiler doesn't default to the system's setting? I'm using a computer with Windows 2000 with a regional setting of...
1
by: nerman | last post by:
Hello I have a problem with the regional settings. I have set the regional settings of the web server to display the numbers in this format 123.456,78 But when I open my web site all number are...
2
by: Bob Dydd | last post by:
Hi Everbody Question Changing the regional settings ie. from UK to US AUS etc, Access retains the original currency format that the application was created in. So if an mdb that is written...
3
by: Emmanuel | last post by:
I want to know the decimal separator and the group separator character that the user has set in Regional Settings in Control Panel. I tryied to use...
1
by: John | last post by:
Hi, The following behavior when using J# vs. C# is really bothering me. When I have the regional settings on my workstation set to a non-US settings (eg: Danish); it seems that J# disregards...
12
by: magister | last post by:
Hello, I know I can set the Culture to what I want, but shouldn't the current culture be taken from the regional settings on the web server's control panel!!! Mine is set to "united kingdom"...
7
by: Fred Flintstone | last post by:
I'm writing a VB.Net windows forms application. This line of code: Personal.EffectiveDate = GridRow2.Cells("New Value").Value.ToString.Trim Fails with this error: Cast from string...
16
by: Colmag | last post by:
I've written an application with vb.net 2003 (framework 1.1) which automates a 3rd party viewing/printing application (via an activex control). I've released several versions over the last year...
1
by: Scott | last post by:
Server was installed with US regional settings I changed to UK Iuser_servername when first run picked up US regional settings and i cant change (cant/wont login as this user) Anyone know...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.