473,850 Members | 2,036 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 15855
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_MachineNam e 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_MachineNam e 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_MachineNam e
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_MachineNam e
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
10144
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 Japanese. Is there any way to have Java always use US English rather than the default Japanese?
1
7183
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 diplayed with the old format which is 123,456.78 I changes also the regional setting of my computer but it does not work any ideas Thank Nere
2
4564
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 on a computer with Regional Settings Currency Format set to UK £'s , when that mdb is open on a machine
3
12411
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 System.Globalization.NumberFormatInfo.CurrentInfo like that: NumberFormatInfo numInfo = System.Globalization.NumberFormatInfo.CurrentInfo; string ds = numInfo.CurrencyDecimalSeparator; string gs = numInfo.CurrencyGroupSeparator;
1
2390
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 the regional settings. Where-as C# automatically picks up the regional settings and applies them. For example, the following J# code: public static void main(String args)
12
9163
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" but in my asp.net page I do
7
12652
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 "8/23/2005" to type 'Date' is not valid. The date being returned is in US English and my system is set for
16
2945
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 without problem, but since getting a new laptop, people can't run the program since I built it with the new machine. Even if I take the modified code and build it with my old machine, it still crashes. I thought maybe it was the code, but it...
1
2211
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 how to change Iuser_servername regional settings ? ..net 2
0
9895
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9744
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10670
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10352
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9503
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
7072
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5735
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5931
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
3178
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.