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

The Archive Base Latest Questions

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

In my C# app I am having trouble reading some registry keys, RegistryKey key

  • 0

In my C# app I am having trouble reading some registry keys,

RegistryKey key = Registry.LocalMachine.OpenSubKey("Software\\NameOfSoftware\\");

RegistryKey key1 = Registry.LocalMachine.OpenSubKey("Software\\NameOfSoftware\\Version1\\Databases");

RegistryKey key2 = Registry.LocalMachine.OpenSubKey("Software\\NameOfSoftware\\Version2\\Databases");

the first one there is the main key, and key1 and key2 are subkeys. I can read key1, but not key2.

I can see both keys in the registry with regedit. It is funny though if I do this,

key.GetSubKeyNames()

I get a list like this,

Version1,
SomethingElse1
SomethingElse2

Where the ‘SomethingElse’ keys are keys that I cannot see with regedit? Version2 is clearly missing too, but I can see it with regedit.

UPDATE:
So to clarify something. The key that was working (Version1) was already there. Version2 was added because I exported the Version1 key, edited the file to replace Version1 with Version2 and imported it back in. So how can I duplicate the key without this issue?

  • 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-26T11:30:13+00:00Added an answer on May 26, 2026 at 11:30 am

    It sounds like you might be running your C# application on Vista (or higher, e.g. Win7 or WS2008), and running into registry permissions. This article might be useful:

    http://msdn.microsoft.com/en-us/magazine/cc982153.aspx

    You might also be facing a related issue, “Registry Virtualization”:

    http://msdn.microsoft.com/en-us/library/aa965884.aspx

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

Sidebar

Related Questions

I've just added a settings bundle to my app and am having trouble reading
I'm building a flash app (just AS3 with FlashDevelop) and I'm having some trouble
I'm having trouble reading in from a .CSV file in an android app. Mainly
I am making a Ruby on Rails app and am having trouble setting some
I am having trouble deploying express app on nodester. After successfully running the default
I am having trouble to incorporate Google Maps in an adroid app created with
Having trouble framing this assertion in Rspec for my rails app. A User has
I am having trouble loading .swf files to my flash app off my cloudstorage
I'm having trouble getting my domain pointed to my website hosted with google app
I'm having trouble getting Apple to generate an APN SSL certificate for my app

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.