.net - Registry.LocalMachine.OpenSubKey failing intermittently -


i have code ( winforms app .net 2.0 ) registrykey regkey=registry.localmachine.opensubkey@"software\cpaperless\ttc\settings", false);

this code failing every once in while on win7 , vista when uac on ( failing mean key null.) note key existing , can see in registry furthermore part of product uses same key in hklm code in c++ , works every time
long lretval = regopenkeyex(hkey_local_machine, "software\cpaperless\ttc\settings", 0, key_read, &hkeyttc_lm);

what going wrong here. has seen behaviour before
tia

possible registry virtualization issue?


Comments

Popular posts from this blog

unicode - Are email addresses allowed to contain non-alphanumeric characters? -

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

c++ - Convert big endian to little endian when reading from a binary file -