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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T11:18:51+00:00 2026-05-24T11:18:51+00:00

Beyond perplexed this time… The simplest possible line of code works sometimes, sometimes it

  • 0

Beyond perplexed this time…

The simplest possible line of code works sometimes, sometimes it doesn’t. First I thought the issue was that I was trying to read the value of a DWORD, but since I CAN read DWORD values from SOME keys, that must not be the problem. Now the problem seems to be that I can’t read from ANY key if the key has a space in the name. Surely this can’t be. I refuse to believe that MS didn’t account for spaces in registry key paths and names.

So tell me why this doesn’t work:

MsgBox(My.Computer.Registry.GetValue("HKEY_LOCAL_MACHINE\SOFTWARE\CA\CA ARCserve D2D\WebService", "Port", Nothing))

It just pops up an empty box. And yes, a value does exist in the registry, and yes, I have permission to read the key.

EDIT: Yup, over and over again it seems that you can’t read from the registry if there are spaces anywhere in the key name. Seriously?!?

EDIT AGAIN: “Ramhound” says code examples are stupid. Fascinating point of view. However his own suggestion also failed:

Dim key As RegistryKey = Registry.LocalMachine.OpenSubKey(“SOFTWARE\ATI Technologies\CBT”)

Dim objValue As Object

objValue = key.GetValue(“ReleaseVersion”)

MsgBox(objValue.ToString())

  • 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-24T11:18:52+00:00Added an answer on May 24, 2026 at 11:18 am

    After an entire wasted day, the solution is to set your VS project to “any cpu” in advanced compile options because if set to x86 and running on a 64bit OS you are limited to the “Wow6432node” in the registry.

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

Sidebar

Related Questions

This is probably beyond easy, but I'm having a hard time to figure out
This is beyond my level and I need some help. In the htaccess make
apparently it works Can you name reasons beyond good practices not to give these
I read and article talking about moving beyond 960px width for websites. This width
First off my Java is beyond rusty and I've never done JSPs or servlets,
Updating: The php is considering the code beyond the EOM; closing tag. Here is
This is beyond both making sense and my control. That being said here is
For reasons beyond the scope of this post, I would like to verify in
This question may be beyond the scope of a simple answer here at stack
For reasons beyond the scope of this post, I would like to verify in

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.