Troubleshooting: Manipulating the Registry
In working with the registry, you may encounter specific exceptions. This topic lists the most common exceptions and provides suggestions on how to address each of them.
Exceptions
The following table lists exceptions that may occur while working with the registry and provides tips on how to address them.
Exception |
Suggestion |
---|---|
Make sure the key you are performing an operation on exists, and that the path you have supplied is both correct and not over 255 characters. |
|
Make sure you have read and write permissions from RegistryPermissionAccess. |
|
Make sure the key was opened for writing if attempting to write to it. |
See Also
Concepts
Reading from and Writing to the Registry Using My
Reading from and Writing to the Registry Using the Microsoft.Win32 Namespace
Reference
Other Resources
Walkthrough: Creating a Registry Key and Changing Its Values