473,385 Members | 1,553 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

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.
Jul 19 '05 #1
5 3124
Clive <cl***@nospam.com> wrote:

<snip>
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.


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 - <sk***@pobox.com>
http://www.pobox.com/~skeet/
If replying to the group, please do not mail me too
Jul 19 '05 #2
C
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

-----Original Message-----
Clive <cl***@nospam.com> wrote:

<snip>
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.
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 underAdvanced there's a box saying "Apply all settings to the current useraccount and to the default user profile." Maybe that could help you?
--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet/
If replying to the group, please do not mail me too
.

Jul 19 '05 #3
C <c@nospam.com> wrote:
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?


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 - <sk***@pobox.com>
http://www.pobox.com/~skeet/
If replying to the group, please do not mail me too
Jul 19 '05 #4
C <c@nospam.com> wrote:
I got another user to log on and it still did'nt work..


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

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet/
If replying to the group, please do not mail me too
Jul 19 '05 #5
"Clive" <cl***@nospam.com> wrote in message
news:04****************************@phx.gbl...
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.

Check your web.config file and {windows
directory}\Microsoft.NET\Framework\v1.2.3\CONFIG\m achine.config for the
<globalization> element because you can set the default Culture and
UICulture from there.

Jul 19 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Rahul Agarwal | last post by:
Hi I am trying to write data back to the client using dataset.WriteXML and I have set the Thread.CurrentThread.CurrentCulture to "no" (norwegian) just before writing the data using WriteXML....
4
by: Leonardo Hyppolito | last post by:
Hello, I am trying to write a multithread program that simulates producers and consumers. My program can have many producers and many consumers (each in a separate thread). It has a storage...
5
by: Claire | last post by:
Ive a static logging routine that's called by all my objects in the application. Ive several threads running in my application and Id like the log file to show the thread ID so I can trace a...
1
by: benmorganpowell | last post by:
I have a small windows service which connects to a POP3 server at defined intervals, scans the available messages, extracts the required information and inserts the data into a SQL database. I am...
1
by: Manu | last post by:
I have created a new culture : Dim objCulture As New CultureInfo("he") //hebrew When I tried to assign it to the current thread. Thread.CurrentThread.CurrentCulture = objCulture...
13
by: Bob Day | last post by:
Using vs2003, vb.net I start a thread, giving it a name before start. Code snippet: 'give each thread a unique name (for later identification) Trunk_Thread.Name = "Trunk_0_Thread" ' allow...
1
by: scorpion53061 | last post by:
I have MS Word operating in a thread other than the main writing a report. Can I tell the main thread to wait until a particular point (a sub starts) in another thread before continuing on?
5
by: Tsair | last post by:
I set the thread culture in MAIN() as below in order to show the date in format DAY/MONTH/YEAR, but the datagridview alway show the date in M/d/yyyy. How to set the default Date format from...
4
by: Rainer Queck | last post by:
Hi NG, in my application a <myDataTable>.Select fails with "Syntax error in the expression." It took me a while, isolate the cause to this: To select some datarows from a data table I am...
2
by: tamirmalas | last post by:
Hi, iam trying to set a culture info different than the current culture info on the system, the code compiles fine, but nothing happens, and the system culture is the one used for the program. ...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

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.