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