473,396 Members | 1,929 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,396 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 3125
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: 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:
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
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: 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...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.