Changing default culture for windows service running as LocalSystem
问题 Our admins unexpectedly migrated a server where my .NET windows service runs (to Windows 2008 ... because of some old apps). It is running under LocalSystem account. The target framework is .NET framework 4 Client Profile. In my service the method DateTime.Parse now throws invalid format exception. When I add to OnStart Thread.CurrentThread.CurrentCulture = new CultureInfo("cs-CZ", false); it gets better, but still in some methods it fails, probably running in different therads. How to