PC Regional and Language Settings are being ignored in .Net

倖福魔咒の 提交于 2019-12-01 11:36:50

You use the ASP.NET tag: I suspect you are running the application under an identity without its own profile, and it is using the default regional settings stored in the registry under 'HKEY_USERS.Default\Control Panel\International`.

These aren't necessarily the same as the regional settings of an interactive user.

You can do one of two things:

  • Add a <globalization> element to your web.config. This is probably the best solution, as it makes your app independent of the regional settings of the hosting server.

  • Use Control Panel to set the regional settings you want for the current user and for the default user profile. The exact steps depend on the Windows version you're using.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!