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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T03:02:20+00:00 2026-05-27T03:02:20+00:00

I have a shared class which calls the following registry key which is used

  • 0

I have a shared class which calls the following registry key which is used by a Windows Service and also an ASP MVC3 website:

irsalKey = Registry.LocalMachine
                    .CreateSubKey("SOFTWARE")
                    .CreateSubKey("MyApp");

On my local (Win7 32bit) PC this works as expected.

On my test 2008 server, the Service read/writes the “Wow6432” node, but website does not?
My guess is that the service is 32bit (uses 32 bit binaries) but the website is 64bit under IIS?

What can I do so that both read/write the same keys?
It doesn’t matter WHICH key this is, but it needs to be the same for both!

Thx

  • 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-27T03:02:21+00:00Added an answer on May 27, 2026 at 3:02 am

    Googling pointed me to use the following:

    RegistryKey.OpenBaseKey(RegistryHive.LocalMachine, RegistryView.Registry32)
    

    It IS in MSDN, but the documentation wasn’t too clear (to me anyway!) but this forces any RegistryKey to use it’s 32bit version.

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

Sidebar

Related Questions

I have a static class in a shared project, which I want to extend
I have some ASP.NET web services which all share a common helper class they
I have a windows form application that uses a Shared class to house all
I have the following Repository: Public Class PageRepository Private Shared _pages As BLL.PageCollection Shared
I have the following classes: Public Class Email Private Shared ReadOnly EMAIL_REGEX = \b[a-zA-Z]+[a-zA-Z0-9._+-]+@
Lets say I have this class in foobar-shared.lib: class FooBar { std::string m_helloWorld; }
Modern ATL/MFC applications now have access to a new shared pointer class called CAutoPtr,
I have this class: class View(object): def main_page(self, extra_placeholders = None): file = '/media/Shared/sites/www/subdomains/pypular/static/layout.tmpl'
I have a library which creates objects (instances of class A) and pass them
I have a class which shall be capable of dispatching messages over TCP. Here

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.