IIS VS 2008 / Web.config - 日期格式错误
谁能帮忙。 我最近移动了服务器,它的 IIS7 而不是我们之前的 IIS6,但其他一切都是一样的,我已将区域设置为英国,所有日期格式加上系统本地..我的意思是一切..
但是当网页 asp.net 是在 IIS7 上运行,它认为日期是另一种格式..
这真的令人费解.. 我确实设法通过放入每个 web.config 来修复它
<globalization culture="en-GB"/>
,但我必须将它放入每个人中.. 我知道我也可以将它放入机器中.config。
但我不明白,我的其他服务器无需修改即可工作。 我检查了旧服务器上的 web.config 和 machine.config,但没有这些添加内容
有什么想法吗?
谢谢
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
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
确保您还勾选了“区域和语言选项”(“高级”选项卡)中的复选框,以显示“将所有设置应用到默认用户配置文件。除非您执行此操作,否则 .Net 运行所使用的帐户将保留为美国帐户。重新启动。
去过那里: )
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 :)
检查盒子上的本地化选项,看看它的设置是什么——有人可能只是选择了 en-US 进行设置,却忘记告诉任何人。
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.