Thread.CurrentThread.CurrentCulture()

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Clive

    #1

    Thread.CurrentThread.CurrentCulture()

    Hi,

    I have an ASPX app that checks the Culture of the machine.

    My PC is currently set to have English(US) dates and US
    Currency.

    When I check the Culture it returns "en-IE".

    The machine did have this original setting but I changed
    it to English(US) for dates and currency.

    I also removed and reinstalled VS.NET and the .NET
    Framework as I thought this may be also be using the
    setting of teh time it was installed.

    I still had the problem.

    I noticed in teh registry that he Default user settings
    were set to be "en-IE" etc. So I manually changed these to
    have the same settings as a machine with English(US) date
    and currency.

    I still have the problem. The problem being that my
    CultureINfo retirn en-IE.

    This is driving me crazy and really holding me up.

    Any Ideas?

    Thanks,
    Clive.
  • Jon Skeet

    #2
    Re: Thread.CurrentT hread.CurrentCu lture()

    Clive <clive@nospam.c om> wrote:

    <snip>
    [color=blue]
    > I noticed in teh registry that he Default user settings
    > were set to be "en-IE" etc. So I manually changed these to
    > have the same settings as a machine with English(US) date
    > and currency.
    >
    > I still have the problem. The problem being that my
    > CultureINfo retirn en-IE.[/color]

    That suggests to me that maybe although the *system* locale is US, your
    *user* locale is Irish. Which OS are you using? In XP Pro under
    Advanced there's a box saying "Apply all settings to the current user
    account and to the default user profile." Maybe that could help you?

    --
    Jon Skeet - <skeet@pobox.co m>
    Pobox has been discontinued as a separate service, and all existing customers moved to the Fastmail platform.

    If replying to the group, please do not mail me too

    Comment

    • C

      #3
      Re: Thread.CurrentT hread.CurrentCu lture()

      W2K Server.

      I have deleted all profiles in the hope that they would be
      recreated and that they would use the new date setting but
      it has'nt. Any ideas?

      Clive

      [color=blue]
      >-----Original Message-----
      >Clive <clive@nospam.c om> wrote:
      >
      ><snip>
      >[color=green]
      >> I noticed in teh registry that he Default user settings
      >> were set to be "en-IE" etc. So I manually changed these[/color][/color]
      to[color=blue][color=green]
      >> have the same settings as a machine with English(US)[/color][/color]
      date[color=blue][color=green]
      >> and currency.
      >>
      >> I still have the problem. The problem being that my
      >> CultureINfo retirn en-IE.[/color]
      >
      >That suggests to me that maybe although the *system*[/color]
      locale is US, your[color=blue]
      >*user* locale is Irish. Which OS are you using? In XP Pro[/color]
      under[color=blue]
      >Advanced there's a box saying "Apply all settings to the[/color]
      current user[color=blue]
      >account and to the default user profile." Maybe that[/color]
      could help you?[color=blue]
      >
      >--
      >Jon Skeet - <skeet@pobox.co m>
      >http://www.pobox.com/~skeet/
      >If replying to the group, please do not mail me too
      >.
      >[/color]

      Comment

      • Jon Skeet

        #4
        Re: Thread.CurrentT hread.CurrentCu lture()

        C <c@nospam.com > wrote:[color=blue]
        > W2K Server.
        >
        > I have deleted all profiles in the hope that they would be
        > recreated and that they would use the new date setting but
        > it has'nt. Any ideas?[/color]

        Well, you'd presumably have to keep going with *a* profile to stay
        logged in. What happens if you create a new user, log in as them, and
        then run your test program?

        --
        Jon Skeet - <skeet@pobox.co m>
        Pobox has been discontinued as a separate service, and all existing customers moved to the Fastmail platform.

        If replying to the group, please do not mail me too

        Comment

        • Jon Skeet

          #5
          Re: Thread.CurrentT hread.CurrentCu lture()

          C <c@nospam.com > wrote:[color=blue]
          > I got another user to log on and it still did'nt work..[/color]

          In that case I'm afraid I don't know :(

          --
          Jon Skeet - <skeet@pobox.co m>
          Pobox has been discontinued as a separate service, and all existing customers moved to the Fastmail platform.

          If replying to the group, please do not mail me too

          Comment

          • Dominique Kuster

            #6
            Re: Thread.CurrentT hread.CurrentCu lture()

            "Clive" <clive@nospam.c om> wrote in message
            news:043901c36d 5a$efcf99b0$a00 1280a@phx.gbl.. .[color=blue]
            > My PC is currently set to have English(US) dates and US
            > Currency.
            > When I check the Culture it returns "en-IE".
            > I still have the problem. The problem being that my
            > CultureINfo retirn en-IE.
            > This is driving me crazy and really holding me up.[/color]
            Check your web.config file and {windows
            directory}\Micr osoft.NET\Frame work\v1.2.3\CON FIG\machine.con fig for the
            <globalizatio n> element because you can set the default Culture and
            UICulture from there.

            Comment

            Working...