Registry HKCU permission problem

  • Thread starter Thread starter Sine Nomine
  • Start date Start date
S

Sine Nomine

Hi,
One of the users of my program has been having difficulties, and I've
pinpointed the problem to the following. I have a line of code like:

RegistryKey key = Registry.CurrentUser.OpenSubKey(
"Software\\MyProgram",true);

to open a writable registry key to store settings. This line generates a
security exception for him (message: "Requested registry access is not
allowed."). However, if I change the line to open the key read-only,
this succeeds.

I've checked that his security settings are "Full trust", so I'm out of
ideas as to why he wouldn't be able to write to his own CurrentUser keys
- can anyone think of anything else I should check?
 
Could it be that the NT permissions on this registry key are not correct ? I
would give this a look using regedit to see if it's a framework or NET
issue...

Patrice
 
Back
Top