Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > Regional settings in IIS6

Reply
Thread Tools

Regional settings in IIS6

 
 
Jonathan
Guest
Posts: n/a
 
      07-14-2005
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
 
Reply With Quote
 
 
 
 
Bob Barrows [MVP]
Guest
Posts: n/a
 
      07-14-2005
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"


 
Reply With Quote
 
 
 
 
Jonathan
Guest
Posts: n/a
 
      07-14-2005
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"
>
>
>

 
Reply With Quote
 
Bob Barrows [MVP]
Guest
Posts: n/a
 
      07-14-2005
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.


 
Reply With Quote
 
Jonathan
Guest
Posts: n/a
 
      07-14-2005
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.
>
>
>

 
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
Setting date format, regional settings for ASP.NET =?Utf-8?B?RGF2aWQgTGVlIEFV?= ASP .Net 0 06-15-2004 02:53 AM
How can i get the date formatted according to the regional settings made at the operating system level Karunakararao ASP .Net 0 05-11-2004 09:51 AM
Where does DateFormat.ShortDatePattern and 'Regional Settings/Date tab' Phil ASP .Net 0 11-06-2003 09:25 AM
problem with regional & language settings Lachlan James ASP .Net 1 08-05-2003 05:43 AM
Regional settings René de Leeuw ASP .Net 2 07-02-2003 02:03 PM



Advertisments