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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T01:42:30+00:00 2026-05-27T01:42:30+00:00

Trying to access a specific localised resource file such as WebResource.en.us which is located

  • 0

Trying to access a specific localised resource file such as WebResource.en.us which is located in my App_GlobalResources folder using the following code:

string resData = GetGlobalResourceObject("WebResource.en.us", "SomeResource").ToString();

but this keeps giving me the error below:

Could not find any resources appropriate for the specified culture or
the neutral culture. Make sure “Resources.WebResource.en-us.resources”
was correctly embedded or linked into assembly
“App_GlobalResources.bpqqrnv4” at compile time.

Any ideas ?

  • 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-27T01:42:31+00:00Added an answer on May 27, 2026 at 1:42 am

    I tried the following Code

    Page_Load(....)
    {
       /// note - i did NOT mention the culture when accesing my resourceFiles
       Debug.WriteLineIf(
           GetGlobalResourceObject("WebResource", "someResource")!=null,
           GetGlobalResourceObject("WebResource", "someResource").ToString());
    
       /// accessing a culture specific resource without changing Page Culture
       CultureInfo yourCI = new CultureInfo("en-US");
       Debug.WriteLine(
          HttpContext.GetGlobalResourceObject(
              "WebResource", 
              "someResource", 
              yourCI).ToString());
    }
    

    my Page directive

    <% Page Culture="en-US" UICulture="en-US" .....  %>
    

    My App_GlobalResources folder contains two files

    • WebResource.resx
    • WebResource.en-US.resx

    Using this settings and code – my Debugger printed the value without any problems.
    When removing WebResource.resx (my default ressource file) the same code throws an exception.

    I would assume that you have to add a default resx file and remove the explicit culture notation in GetGlobalResourceObject(…, ..).

    update: added some code to access specific resx culture file
    see also MSDN

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

Sidebar

Related Questions

Trying to prevent access to a specific file, not any files with a certain
I'm currently trying to deny access to a specific html-document which should only be
we are trying a access a file on Computer on a specific location through
I am trying to check if I have write access to a specific key
I am trying to access an exchange server to read emails from a specific
I would like prevent anyone trying to access my website thro' code. Code in
The specific area I'm trying to access is the body of the New Email
After using 'cocos2d-iphone' in one of my projects, I am trying to decide which
I use Hibernate-Spring and I am trying to access a specific schema in a
I'm trying to store Twitter access token to my database for a specific user,

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.