我在操作注册表的时候怎么报错UnauthorizedAccessException呢
ipqn 2005-03-31 01:08:11 我通过如下方式操作注册表:
RegistryKey LM=Registry.LocalMachine;
RegistryKey SoftWare=LM.OpenSubKey("SOFTWARE");
RegistryKey Mine=SoftWare.CreateSubKey("EasyClass");
Mine.SetValue("ConnString",ConnString);
但是报错,UnauthorizedAccessException异常!
请问什么原因,如何解决呢?