Registry HKCU permission problem

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?
 
P

Patrice

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top