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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T02:35:16+00:00 2026-06-03T02:35:16+00:00

I think I need some guidence in general Localization and Globalization in ASP.NET MVC3.

  • 0

I think I need some guidence in general Localization and Globalization in ASP.NET MVC3. I am not even sure what both of these mean and if really need both.
This is what I have for now. MVC3 application, one Resources.resx file where I keep my strings and in the Views I am using these strings as @MyApplication.Web.Properties.Resources.MyString
and I am using them in the Data Annotations for the Models as [Required(ErrorMessageResourceType = typeof(Resources), ErrorMessageResourceName = "RequiredField")]
I need these string in Controllers now. I have found a reference on MSDN and tried using them as
ResourceManager rm = new ResourceManager("Strings", Assembly.GetExecutingAssembly()); and rm.GetString("InvalidFormData").
But like this I get:
Could not find any resources appropriate for the specified culture or the neutral culture. Make sure “Strings.resources” was correctly embedded or linked into assembly “MyApplication.Web” at compile time, or that all the satellite assemblies required are loadable and fully signed.

What I want to have is one application that would be hosted on different domains for different languages. I would create multiple Resource.resx files. So I don’t need to handle multiple languages in one deployment. I want to set the language for each one manually (in web.config I guess).
Can someone please explain to me what am I missing and what do I need to accomplish my goal? Or, perhaps, if you know any good references, just point me to them.

Thank you.

  • 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-06-03T02:35:18+00:00Added an answer on June 3, 2026 at 2:35 am

    I have found the way to do what I wanted. To mention once again, I want to manually set the language of the application with no concern of the users browser culture. I just wanted to have the same code that will cater for multiple languages cause the application will be hosted on different domains for different countries in their own languages.
    The solution is to have:
    In Global.asax

      protected void Application_BeginRequest(object sender, EventArgs e)
      {
        Thread.CurrentThread.CurrentUICulture =
        CultureInfo.CreateSpecificCulture("myCulture");
      }
    

    In the Views:

    @*MyApplication*.Web.Properties.Resources.*MyString*
    

    In the Model:

      [Required(ErrorMessageResourceType = typeof(Resources), ErrorMessageResourceName = "RequiredField")]
    

    In the Controller:

    *MyApplication*.Web.Properties.Resources.*MyString*
    

    And then create the Resource.resx files like:

     Resource.myCulture.resx
    
    • myCulture is the same as in the Global.asax file above.

    That’s it. Very simple.

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

Sidebar

Related Questions

So, I need some way to implement an undirected network ( I think this
I'm confused regarding each() and .each()... I think I need to use both, but
After looking at several questions/answers here, I'm not seeing what I think I need.
[I'm sure this is not odd at all, but I need just a bit
I have a general question and I'm not sure where to begin, literally. Can
I'm very new to asp.net and I have a general question about datalists. I
Im a javascript newbie and would need some help with this simple thing... I
I am trying to do simple thing: I just need to set some cells
I have this thing that i need to do and some advices will be
I think I need a way to perform a pivot or crosstab using C#

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.