Hi Ashkarme,
Welcome to MSDN forums!
Error Message "Invalid root in registry key <name> for reading"
-> Such error message usually means the registry key or value doesn't exist in Registry.
Suggestion 1:
Please double check the Windows registry according to the error prompt "HKCU\SOFTWARE\Microsoft\..." and make sure the registry key exists and is spelled correctly.
Suggestion 2:
Since the "HKCU" stands for "HKEY_CURRENT_USER" node in Registry, which means the Registry configuration of current loggon user may be faulted. Thus, you can use other Windows Account to log on your computer, to see if this error still occurs.
Best regards,
Martin Xie
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.