I am having a strange problem. I fear the answer will not be what I want
to hear, but here goes:

Following code works fine on 32bit development environment:

RegistryKey regKey = Microsoft.Win32.Registry.LocalMachine.OpenSubKey
("SOFTWARE\\MyCompany\\MyApp");
string connString = (string) regKey.GetValue("MyValue");

Once moved to the Windows Server 2003 x64 Edition running on AMD Opteron
rig, OpenSubKey statement returns NULL even though key in question does
exist.

I've tested this by running this code as Administrator and setting
processModel user in machine.config on the box to "system".

I am running 1.1 Framework on 64bit box. Is there something I am missing.

The fact the the namespace is called Microsoft.Win32 scares me. I hope the
answer will not be "you must run 2.0 in order to read registry on 64bit
platform".


Thanks in advance for your help.

===================================
This list is hosted by DevelopMentorĀ®  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com

Reply via email to