473,396 Members | 1,933 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,396 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 15830
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

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.