Hi,
My CSharp program, when I run from the local drive it can create/modify
registry. However running the program from a network drive, gives
RegistryPremission error. I don't belive that just by running the program
from a network drive, the program will try to access the registry of the
network machine. Here is the code snippet:
RegistryKey rk =
Registry.CurrentUser.OpenSubKey(@"Software\Solidic a\TestRegistryAccess",RegistryKeyPermissionCheck.R eadWriteSubTree);
if (rk == null)
rk =
Registry.CurrentUser.CreateSubKey(@"Software\Solid ica\TestRegistryAccess");
rk.SetValue(this.textBoxName.Text, this.textBoxValue.Text);
rk.Close();
Thanks.