IIS 6 Date Format

Hi Guys, a question for the IIS "nuts" sorry "experts"

I have a SQL application with a Browser front end running under IIS6 on a SQL2000/W2003 box. I am in Australia and need a date format d/m/y, but the application shows m/d/y. The progam help desk blames IIS and indicate that they get the date format from the server and that its not coded into the appliation.

I have logged in as Domain Admin, Local Admin, IUSR_servername and set each's regional settings to the correct country code. I have modified the metabase in IIS for the AspLCID. Modified the registry for both HKEY_CURRENT_USER\Control Panel\International and HKEY_USERS\.DEFAULT\Control Panel\International with no success.

Any idea's
Isn't Bill such a Great Guy!!!!

Comments

  • SWMSWM Posts: 287Member
    Don't you hate that. You post a question and finally solve it your self. icon_mad.gif
    Any way for any one else with a similar problem, IIS6 runs w3wp.exe on your server. W3wp.exe by default starts as a "network service" and hence used the regional settings of the network service user account.

    I configured my default application pool identity in IIS from network service to "local system". Restarted IIS and TADA all OK.

    Hope this helps someone else. :D
    Isn't Bill such a Great Guy!!!!
  • SlowhandSlowhand Questionably Benevolent Bay Area, CaliforniaPosts: 5,163Mod Mod
    That's actually a really handy thing to know. Sorry there were no responses, but thanks for the tip.

    Free Microsoft Training: Microsoft Virtual Academy
    Free PowerShell Resources: Top 50 PowerShell Blogs
    Free DevOps/Azure Resources: Visual Studio Dev Essentials

    Let it never be said that I didn't do the very least I could do.
  • sprkymrksprkymrk Posts: 4,884Member
    SWM wrote:
    Any way for any one else with a similar problem, IIS6 runs w3wp.exe on your server. W3wp.exe by default starts as a "network service" and hence used the regional settings of the network service user account.

    I configured my default application pool identity in IIS from network service to "local system". Restarted IIS and TADA all OK.

    Oh yeah, I was gonna say that. icon_lol.gif icon_scratch.gif
    Nice tip!
    All things are possible, only believe.
  • _kk_kk Posts: 1Member ■□□□□□□□□□
    I have done as you said (change default application pool to 'local system') and re-started the IIS. Still no luck. any clue?
  • benchrbenchr Posts: 1Member ■□□□□□□□□□
    Don't change IIS user account to solve this problem! icon_eek.gif IIS runs as network service on purpose, it is lower privilege than system.

    You are better off keeping it this way, and change the date/time format for network service (or do it for all users on the machine if its easier).

    Thanks,
    Ben Chronister
  • dynamikdynamik Posts: 12,314Banned
    _kk wrote:
    I have done as you said (change default application pool to 'local system') and re-started the IIS. Still no luck. any clue?

    Did you also change the regional settings like he did?
    benchr wrote:
    Don't change IIS user account to solve this problem! icon_eek.gif IIS runs as network service on purpose, it is lower privilege than system.

    You are better off keeping it this way, and change the date/time format for network service (or do it for all users on the machine if its easier).

    Thanks,
    Ben Chronister

    Excellent point!
  • AresDRacoAresDRaco Posts: 1Registered Users ■□□□□□□□□□
    We had the same problem at work, this works for windows 7 but also in Windows server 2008

    Apply regional and language settings to reserved accounts - Microsoft Windows Help
Sign In or Register to comment.