| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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 ![]() |
|
#2
|
||||
|
||||
|
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).
|
|
#3
|
|||
|
|||
|
Quote:
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 ![]() |
|
#4
|
||||
|
||||
|
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 |
|
#5
|
||||
|
||||
|
Quote:
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:
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. |
|
#6
|
||||
|
||||
|
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. |
|
#7
|
|||
|
|||
|
Quote:
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 ![]() 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. |
|
#8
|
||||
|
||||
|
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.
|
|
#9
|
||||
|
||||
|
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. |
|
#10
|
|||
|
|||
|
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? |
|
#11
|
||||
|
||||
|
changing the LCID in ASP code won't affect your server settings.
you have to look elsewhere. |
|
#12
|
|||
|
|||
|
Quote:
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? |
|
#13
|
||||
|
||||
|
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? |