Windows OS
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsSystem AdministrationWindows OS

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old February 12th, 2007, 06:28 PM
norman1 norman1 is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Feb 2007
Posts: 8 norman1 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 32 m 58 sec
Reputation Power: 0
Changing regional settings for IUSR

Hi,
I have a strange problem.
After installing "ASP Stats Generator" (ASG) which was developed by an Italian, my dates for Internet users on all websites on the server, have somehow changed to Italian.

When I login to the webserver and check the regional settings they all appear normal. I tried checking the box "Apply all settings to current user account and default user profile" but this didn't make any difference (havent restarted server).

Does anybody know what I can do to restore regional settings to english for website visitors?
Thanks

Reply With Quote
  #2  
Old February 12th, 2007, 08:47 PM
markoc's Avatar
markoc markoc is offline
Contributing User
ASP Free Regular (2000 - 2499 posts)
 
Join Date: Nov 2003
Location: UK
Posts: 2,160 markoc User rank is Captain (20000 - 30000 Reputation Level)markoc User rank is Captain (20000 - 30000 Reputation Level)markoc User rank is Captain (20000 - 30000 Reputation Level)markoc User rank is Captain (20000 - 30000 Reputation Level)markoc User rank is Captain (20000 - 30000 Reputation Level)markoc User rank is Captain (20000 - 30000 Reputation Level)markoc User rank is Captain (20000 - 30000 Reputation Level)markoc User rank is Captain (20000 - 30000 Reputation Level)markoc User rank is Captain (20000 - 30000 Reputation Level) 
Time spent in forums: 3 Weeks 20 h 37 m 31 sec
Reputation Power: 220
Changing regional settings for IUSR

have a look if the session.lcid is set in the code you got.

if ur in the UK for instance it should be:

Code:
<%session.lcid=2057%>
__________________
Hope this advise helps.

If so please show your appreciation by adding reputation points (click gauge image on top right of this post and score).

Reply With Quote
  #3  
Old February 12th, 2007, 09:45 PM
norman1 norman1 is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Feb 2007
Posts: 8 norman1 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 32 m 58 sec
Reputation Power: 0
Quote:
Originally Posted by markoc
have a look if the session.lcid is set in the code you got.

if ur in the UK for instance it should be:

Code:
<%session.lcid=2057%>


Ahhhh - very good suggestion is that set for the whole server / all websites, or just the ASP page / site that contains the session.lcid value?
I did a search through the ASP pages / dir of that italian ASG app but couldn't find the code there - is there any other strange place this code might be put?

Thanks for the suggestion markoc

Reply With Quote
  #4  
Old February 12th, 2007, 09:55 PM
markoc's Avatar
markoc markoc is offline
Contributing User
ASP Free Regular (2000 - 2499 posts)
 
Join Date: Nov 2003
Location: UK
Posts: 2,160 markoc User rank is Captain (20000 - 30000 Reputation Level)markoc User rank is Captain (20000 - 30000 Reputation Level)markoc User rank is Captain (20000 - 30000 Reputation Level)markoc User rank is Captain (20000 - 30000 Reputation Level)markoc User rank is Captain (20000 - 30000 Reputation Level)markoc User rank is Captain (20000 - 30000 Reputation Level)markoc User rank is Captain (20000 - 30000 Reputation Level)markoc User rank is Captain (20000 - 30000 Reputation Level)markoc User rank is Captain (20000 - 30000 Reputation Level) 
Time spent in forums: 3 Weeks 20 h 37 m 31 sec
Reputation Power: 220
Changing regional settings for IUSR

that sets the it for that page.

but if you have a number of common setting for your site you could create a page with them on and have an include at the top of all ur pages.

also make sure that the non-unicode region setting is set to the correct region in the control panel>regional settings>advance tab on the web server

Reply With Quote
  #5  
Old February 12th, 2007, 09:59 PM
norman1 norman1 is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Feb 2007
Posts: 8 norman1 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 32 m 58 sec
Reputation Power: 0
Quote:
Originally Posted by markoc
that sets the it for that page.

but if you have a number of common setting for your site you could create a page with them on and have an include at the top of all ur pages.


The language has been set for all pages - ones of completely different websites from IIS, even PHP pages - so can't see how it could be this after all...

Quote:
Originally Posted by markoc
also make sure that the non-unicode region setting is set to the correct region in the control panel>regional settings>advance tab on the web server

Yes this is set to the real language / location. I ticked the box at the bottom and it said i might have to restart the server - but it never told me to.

Reply With Quote
  #6  
Old February 12th, 2007, 10:10 PM
markoc's Avatar
markoc markoc is offline
Contributing User
ASP Free Regular (2000 - 2499 posts)
 
Join Date: Nov 2003
Location: UK
Posts: 2,160 markoc User rank is Captain (20000 - 30000 Reputation Level)markoc User rank is Captain (20000 - 30000 Reputation Level)markoc User rank is Captain (20000 - 30000 Reputation Level)markoc User rank is Captain (20000 - 30000 Reputation Level)markoc User rank is Captain (20000 - 30000 Reputation Level)markoc User rank is Captain (20000 - 30000 Reputation Level)markoc User rank is Captain (20000 - 30000 Reputation Level)markoc User rank is Captain (20000 - 30000 Reputation Level)markoc User rank is Captain (20000 - 30000 Reputation Level) 
Time spent in forums: 3 Weeks 20 h 37 m 31 sec
Reputation Power: 220
Changing regional settings for IUSR

well ur gonna have to go through the code u got for the counter to see why it's doing it.

can you post the code for the counter so we can have a look to see if we can spot it.

Reply With Quote
  #7  
Old February 12th, 2007, 10:19 PM
norman1 norman1 is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Feb 2007
Posts: 8 norman1 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 32 m 58 sec
Reputation Power: 0
Quote:
Originally Posted by markoc
well ur gonna have to go through the code u got for the counter to see why it's doing it.

can you post the code for the counter so we can have a look to see if we can spot it.


what about this below - we are running Win2k3 - but maybe there is a master LCID defining all pages.


@LCID vs. Session.LCID bug
There is a bug with @LCID and Session.LCID where the latter grabs the value from the former on NT4/IIS 4.0 only but does not actually use that value for any of its calculations. For example, this page is hosted on a US English machine (LCID = 1033) but the page has LCID=2057 at the top of it.
Now we would expect Session.LCID to be 1033 here, like the machine's default. But that is not the case: Session.LCID seems to grab its value from @LCID. Note that although Session.LCID claims to be 2057, it is using the 1033 defaults for currency and date display.



Session.LCID = 2057
FormatCurrency(235.00) = £235.00
#1/2/90# = 02/01/1990
FormatDateTime(#1/2/90#) = 02 January 1990
FormatNumber(235.00) = 235.00


Now when Session.LCID is explicitly set to 2057, the right behavior is obtained.


Session.LCID = 2057
FormatCurrency(235.00) = £235.00
#1/2/90# = 02/01/1990
FormatDateTime(#1/2/90#) = 02 January 1990
FormatNumber(235.00) = 235.00

This bug is fixed with IIS 5.0 (Windows 2000).



I realised I was wrong previously - I used windows search to 'find words in files' and that returned nothing,
But Using Notepad++ I found a file called config_common.asp with
Code:
Session.LCID = 1040
-which is the code for Italian (standard)

Where would I be without NP++

Now can I just change the code to the one for english and should be fine - or do I need to do an IISreset?

Thanks so much markoc!!! This has been bugging me for months.

Reply With Quote
  #8  
Old February 12th, 2007, 10:23 PM
markoc's Avatar
markoc markoc is offline
Contributing User
ASP Free Regular (2000 - 2499 posts)
 
Join Date: Nov 2003
Location: UK
Posts: 2,160 markoc User rank is Captain (20000 - 30000 Reputation Level)markoc User rank is Captain (20000 - 30000 Reputation Level)markoc User rank is Captain (20000 - 30000 Reputation Level)markoc User rank is Captain (20000 - 30000 Reputation Level)markoc User rank is Captain (20000 - 30000 Reputation Level)markoc User rank is Captain (20000 - 30000 Reputation Level)markoc User rank is Captain (20000 - 30000 Reputation Level)markoc User rank is Captain (20000 - 30000 Reputation Level)markoc User rank is Captain (20000 - 30000 Reputation Level) 
Time spent in forums: 3 Weeks 20 h 37 m 31 sec
Reputation Power: 220
Changing regional settings for IUSR

no you shouldn't need to do an IISreset unless you want to as the only sessions that will carry the old settings will be current active one's so any new clients accessing the site will have the new region setting.

Reply With Quote
  #9  
Old February 13th, 2007, 02:35 AM
Shadow Wizard's Avatar
Shadow Wizard Shadow Wizard is offline
Moderator From Beyond
ASP Free God 46th Plane (27500 - 27999 posts)
 
Join Date: Sep 2004
Location: Israel
Posts: 27,641 Shadow Wizard User rank is General 14th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 14th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 14th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 14th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 14th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 14th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 14th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 14th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 14th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 14th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 14th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 14th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 14th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 14th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 14th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 14th Grade (Above 100000 Reputation Level)  Folding Points: 374417 Folding Title: Super Ultimate Folder - Level 1Folding Points: 374417 Folding Title: Super Ultimate Folder - Level 1Folding Points: 374417 Folding Title: Super Ultimate Folder - Level 1Folding Points: 374417 Folding Title: Super Ultimate Folder - Level 1Folding Points: 374417 Folding Title: Super Ultimate Folder - Level 1Folding Points: 374417 Folding Title: Super Ultimate Folder - Level 1
Time spent in forums: 3 Months 2 Weeks 3 h 14 m 36 sec
Reputation Power: 1902
Windows Search in XP is useless for searching within files.
I learned this in the hard way in the very first day of using XP
and simply created my own search utility.

the sad part is that it used to work just fine in Windows98 and
windows 2000, Microsoft just ruined it.

Reply With Quote
  #10  
Old February 13th, 2007, 05:13 PM
norman1 norman1 is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Feb 2007
Posts: 8 norman1 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 32 m 58 sec
Reputation Power: 0
I have changed that lcid code to our regions one and that's fixed the problem for most of the sites on our server.

The strange thing is that I installed the ASG app on a test site on the same server and I'm pretty sure this didnt affect the regional settings of other sites... Strange.

Also I have a PHP site running from IIS, and the regional settings for this are still Italian I tried an IISreset anyway and have waited a day but no change...

Any other ideas how I can fix this?

Reply With Quote
  #11  
Old February 14th, 2007, 03:34 AM
Shadow Wizard's Avatar
Shadow Wizard Shadow Wizard is offline
Moderator From Beyond
ASP Free God 46th Plane (27500 - 27999 posts)
 
Join Date: Sep 2004
Location: Israel
Posts: 27,641 Shadow Wizard User rank is General 14th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 14th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 14th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 14th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 14th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 14th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 14th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 14th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 14th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 14th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 14th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 14th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 14th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 14th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 14th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 14th Grade (Above 100000 Reputation Level)  Folding Points: 374417 Folding Title: Super Ultimate Folder - Level 1Folding Points: 374417 Folding Title: Super Ultimate Folder - Level 1Folding Points: 374417 Folding Title: Super Ultimate Folder - Level 1Folding Points: 374417 Folding Title: Super Ultimate Folder - Level 1Folding Points: 374417 Folding Title: Super Ultimate Folder - Level 1Folding Points: 374417 Folding Title: Super Ultimate Folder - Level 1
Time spent in forums: 3 Months 2 Weeks 3 h 14 m 36 sec
Reputation Power: 1902
changing the LCID in ASP code won't affect your server settings.
you have to look elsewhere.

Reply With Quote
  #12  
Old February 14th, 2007, 02:48 PM
norman1 norman1 is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Feb 2007
Posts: 8 norman1 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 32 m 58 sec
Reputation Power: 0
Quote:
Originally Posted by Shadow Wizard
changing the LCID in ASP code won't affect your server settings.
you have to look elsewhere.

any suggestions of where I could look? Is there any user account I could log onto the server with to override these settings?

Do you think uninstalling / reinstalling the PHP site might correct it's problem?

Reply With Quote
  #13  
Old February 14th, 2007, 03:32 PM
Shadow Wizard's Avatar
Shadow Wizard Shadow Wizard is offline
Moderator From Beyond
ASP Free God 46th Plane (27500 - 27999 posts)
 
Join Date: Sep 2004
Location: Israel
Posts: 27,641 Shadow Wizard User rank is General 14th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 14th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 14th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 14th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 14th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 14th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 14th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 14th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 14th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 14th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 14th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 14th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 14th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 14th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 14th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 14th Grade (Above 100000 Reputation Level)  Folding Points: 374417 Folding Title: Super Ultimate Folder - Level 1Folding Points: 374417 Folding Title: Super Ultimate Folder - Level 1Folding Points: 374417 Folding Title: Super Ultimate Folder - Level 1Folding Points: 374417 Folding Title: Super Ultimate Folder - Level 1Folding Points: 374417 Folding Title: Super Ultimate Folder - Level 1Folding Points: 374417 Folding Title: Super Ultimate Folder - Level 1
Time spent in forums: 3 Months 2 Weeks 3 h 14 m 36 sec
Reputation Power: 1902
you say this fancy "ASP Stats Generator" caused this? I assume it involved
more than just copying ASP files then.. how exactly did you install it on
the server?

Reply With Quote