I deployed a MVC3 Application that works well in development environment, that’s because the date format in the develop machine it’s dd/mm/yyyy. But When The application was deploy in the server starts to getting errors in the server side for not valid Dates, because in the server the format of date it’s mm/dd/yyyy. Now my question it’s Do i need to configure the server?? or only the IIS 7.0 for this specific culture??. Whatever the answer was please let me know how can I do this. I’m working in a windows server 2008 R2 and iis 7.5
I deployed a MVC3 Application that works well in development environment, that’s because the
Share
The easiest way to make sure that the same culture always is used is to set it in your base controller:
But a more solid approach is to create a new action filter:
And tag your controller with it: