Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6799091
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T18:48:26+00:00 2026-05-26T18:48:26+00:00

I deployed a MVC3 Application that works well in development environment, that’s because the

  • 0

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

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T18:48:26+00:00Added an answer on May 26, 2026 at 6:48 pm

    The easiest way to make sure that the same culture always is used is to set it in your base controller:

    public override void OnActionExecuting(ActionExecutingContext filterContext)
    {
        Thread.CurrentThread.CurrentUICulture = 
            Thread.CurrentThread.CurrentCulture = new CultureInfo(1033); //en-us
    }
    

    But a more solid approach is to create a new action filter:

    public class UseEnglishCultureAttribute : ActionFilterAttribute 
    {
        public override void OnActionExecuting(ActionExecutingContext filterContext) 
        {
            Thread.CurrentThread.CurrentUICulture = 
                Thread.CurrentThread.CurrentCulture = new CultureInfo(1033); //en-us
        }
    }
    

    And tag your controller with it:

    [UseEnglishCulture]
    public class BaseController : Controller
    {
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Im working on an mvc3 application that will be deployed globally and have a
I have MVC3 & SqlServer 2008 based application recently deployed. The application works fine
I'm having some problems publishing an asp.net mvc3 application. When deployed, the application fails
I deployed an update to my ASP.NET application and started seeing this error on
My deployed application uses ReportViewer (CLR 3.5) to print locally reports. Recently users noticed
I deployed my ASP.NET application under an existing virtual directory. The new deployment will
I deployed an application using this method and it worked very good. However, there
I deployed my MVC application in our IIS server. When I go to registration
I deployed a JAX-WS Service and use wsimport to generate client code. Because I
I deployed a windows application in the following website http://StagingServer/MyProgs/MPP/ on my intranet site,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.