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 426897
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T19:31:30+00:00 2026-05-12T19:31:30+00:00

We have a system that runs in IIS. The system should always run using

  • 0

We have a system that runs in IIS.

The system should always run using the same “culture”, but we cannot rely on the server settings being set correct.

One way to do it is to specify the culture everytime we do a ToString.

However, we were wondering, is it possible to set the culture on a thread at the begining of a method and rely on all the code in that method being run on the same thread?

  • 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-12T19:31:31+00:00Added an answer on May 12, 2026 at 7:31 pm

    Do you dynamically change the culture? If not, you can set the culture in the web.config file.

    <system.web>
      <globalization culture="ja-JP" uiCulture="zh-HK" />
    </system.web>
    

    You can also set it at page level:

    <%@Page Culture="fr-FR" Language="C#" %>
    

    And on the thread:

    Thread.CurrentThread.CurrentCulture = new CultureInfo("de-DE");
    

    But for what you are using, the page-level or web.config level seems like the most appropriate perhaps.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a system that runs like this: main.exe runs sub.exe runs sub2.exe and
I have a single installation of java in a system that runs 2 or
I have a windows service that runs various system monitoring operations. However, when running
I have a C# Web app that runs perfectly fine in VS2010, but when
I have a web page that runs under an account named, WebUser (IIS runs
I have a WCF service (A) that runs in a web type container (IIS
I have an IIS Application, that runs in w3wp.exe. I'm not 100% sure if
I have two websites hosted on the same IIS server. SiteA contains WCF services
I have a requirement to implement a batch processing system that will run outside
I have a system application, that runs as a collection on 12 processes on

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.