Where is the system locale/culture set for .Net

后端 未结 7 1505
时光取名叫无心
时光取名叫无心 2020-12-09 20:49

I have a problem with a c# assembly (.net 2.0 written using Visual studio 2005) that is installed on a UK server and should use UK regional settings.

What my code do

7条回答
  •  北海茫月
    2020-12-09 21:27

    I believe this is represented by System.Globalization.CultureInfo.InstalledUICulture, so if nothing else maybe you can copy that to the thread's current culture. I'm surprised that you found a case where the threads culture is different than the installed culture. Perhaps your code is running in a process that changed the culture?

    It is possible the account running the code has different regional settings than the system default. Have you checked that?

提交回复
热议问题