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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T12:29:07+00:00 2026-05-13T12:29:07+00:00

So I have a ResourceManager that points to a resource file with a bunch

  • 0

So I have a ResourceManager that points to a resource file with a bunch of strings in it. When I call GetString() with a key that doesn’t exist in the file, I get a System.Resources.MissingManifestResourceException. I need to find out whether the Resource contains the specified key without using exception handling to control program flow. Is there a keys.exists() method or something?

  • 1 1 Answer
  • 2 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-13T12:29:07+00:00Added an answer on May 13, 2026 at 12:29 pm

    Note that by default, it appears that a new .net project’s Resources.resx is going to be in the Properties folder, so you’ll need to create the ResourceManager like this:

    rm = new ResourceManager("MyNamespace.Properties.MyResource", assembly);
    

    Alternatively, by getting frustrated and deleting/recreating Resources.resx, you’ll probably create it in the root of the project, in which case the thing you were doing before, namely this:

    rm = new ResourceManager("MyNamespace.MyResource", assembly);
    

    will work. This is exactly what happened to me today, and I’m adding this post in the hope that it will spare someone some grief.

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

Sidebar

Related Questions

I have a resource assembly that contains various strings, icons, and bitmaps that my
In my game I have a concept of resource manager, a class that stores
I am storing a set of values in a resource file (resx) and have
We have a small wrapper class that uses ResourceManager to load string resources from
I have created some resource files to hold strings. I am displaying a MessageBox
I have imported a file x.ani into Resource file Resources.resx. Now trying to load
I have problem to make work a resource file. This is my simple code
I have a library loading the resources from an external file as follows: ResourceManager
ResourceSet rs = Resources.Loading.ResourceManager.GetResourceSet(CultureInfo.CurrentCulture, true, true); so far I have that line, which gets
I have a windows application that accesses a file in a class library project.

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.