Invalid root in registry key <name> for reading.

You are calling the methods RegRead() or RegWrite() on an unrecognized root registry key.

This error generally occurs when using the RegRead or RegWrite methods with an invalid registry key.

To correct this error

  • Check the Windows registry and make sure the registry key exists and is spelled correctly.

See Also

Reference

RegRead Method

RegWrite Method

RegDelete Method