注册表不能写的问题
wy2ch 2005-04-13 03:28:16 RegistryKey hklm = Registry.LocalMachine;
RegistryKey hkSoftware = hklm.OpenSubKey("Software");
RegistryKey hkTest = hkSoftware.CreateSubKey("test");
hkTest.SetValue("test",5);
hkTest.Close();
未处理的“System.UnauthorizedAccessException”类型的异常出现在 mscorlib.dll 中。
其他信息: 无法写入到注册表项。
操作系统是 2000server