IIS VS 2008 / Web.config - wrong date format

雨燕双飞 提交于 2019-12-22 11:08:35

问题


can anyone help. I have recently moved servers, its IIS7 rather that our previous IIS6 but everything else is the same, i have set the region to the UK and all date formats plus system local .. I mean everything ..

But when a webpage asp.net is running on IIS7 it thinks the dates are another format..

This is really puzzling .. i did manage to fix it by putting in each web.config

    <globalization culture="en-GB"/>

but i have to put it in everyone.. I know i can aslo put it in machine.config.

But i don't understand it, my other server works without modifications. I have checked the web.config and the machine.config on my old server and it has none of these additions

Any ideas?

Thanks


回答1:


Make sure you have also ticked the box in Regional and Language Options (Advanced tab) to say "Apply all settings to the default user profile. The account that .Net runs under will remain as US unless you do this. Reboot.

Been there :)




回答2:


Check the localization options on the box and see what it is set for--someone probably just selected en-US for the setup and forgot to tell anyone.



来源:https://stackoverflow.com/questions/1093360/iis-vs-2008-web-config-wrong-date-format

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