开发者

Registry.CurrentUser is null

开发者 https://www.devze.com 2023-03-24 00:47 出处:网络
I am using the following property to set/read registry v开发者_JS百科alues in my code. However, in the line:

I am using the following property to set/read registry v开发者_JS百科alues in my code. However, in the line:

RegistryKey regKey = Registry.CurrentUser;

regKey is null. This is happening only in a few machines. Any idea?


RegistryKey regRPP = Registry.CurrentUser.CreateSubKey(@"Software\Softech\FaceReader");

//this is the path it will create

regRPP.SetValue("FaceReaderURL", "http://localhost/pnm/v4_spp/");
0

精彩评论

暂无评论...
验证码 换一张
取 消