Valimai
asked on
Returns NULL ... RegistryKey key = Registry.LocalMachine.OpenSubKey(@"SOFTWARE\MyCompany");
hello,
I am having a problem reading the registry. The following line returns NULL.
RegistryKey key = Registry.LocalMachine.Open SubKey(@"S OFTWARE\My Company");
Windows XP 64 bit
IIS running 32bit .NET framework and IIS enabled to run 32 bit apps.
Key was created manually using regedit.
I am administrator on this machine.
Any ideas? thanks
BTW, this works
RegistryKey key = Registry.LocalMachine.Open SubKey(@"S OFTWARE");
I am having a problem reading the registry. The following line returns NULL.
RegistryKey key = Registry.LocalMachine.Open
Windows XP 64 bit
IIS running 32bit .NET framework and IIS enabled to run 32 bit apps.
Key was created manually using regedit.
I am administrator on this machine.
Any ideas? thanks
BTW, this works
RegistryKey key = Registry.LocalMachine.Open
ASKER
Yes, I tried the SOFTWARE key only and it returned a result. Any sub folder created cannot be read.
We have since decided that the machine has a problem and will re-install the OS.
If you do not mind, I will ask that this question be deleted.
We have since decided that the machine has a problem and will re-install the OS.
If you do not mind, I will ask that this question be deleted.
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
ASKER
We have re-installed the machine to 32bit. Your explaination sounds plausable.
Do other sub-keys work?
RegistryKey key = Registry.LocalMachine.Open
Have you tried?
RegistryKey key = Registry.LocalMachine.Open
RegistryKey key2 = key.OpenSubKey(@"MyCompany