E
Elmar Jacobs
hy guys,
i tray to save regestry entries over an asp page. but i get the hole time
UnauthorizedAccessExceptions.
the code from the apsx.cs file is:
/// <summary>
/// Open or Create Sub Key in Registry.
/// </summary>
protected RegistryKey CreateRegistrySubKey(string path)
{
RegistryKey regKey = null;
try {regKey = Registry.LocalMachine.CreateSubKey(path);}
catch(ArgumentNullException) {return regKey;}
catch (ArgumentException) {return regKey;}
catch (UnauthorizedAccessException) {return regKey;}
return regKey;
}
public static path = "SOFTWARE\\settings";
do anybody knows why i have no access to the regestry? I am lock in as an
administrator.
wich best regards,
elmar
i tray to save regestry entries over an asp page. but i get the hole time
UnauthorizedAccessExceptions.
the code from the apsx.cs file is:
/// <summary>
/// Open or Create Sub Key in Registry.
/// </summary>
protected RegistryKey CreateRegistrySubKey(string path)
{
RegistryKey regKey = null;
try {regKey = Registry.LocalMachine.CreateSubKey(path);}
catch(ArgumentNullException) {return regKey;}
catch (ArgumentException) {return regKey;}
catch (UnauthorizedAccessException) {return regKey;}
return regKey;
}
public static path = "SOFTWARE\\settings";
do anybody knows why i have no access to the regestry? I am lock in as an
administrator.
wich best regards,
elmar