Troubleshooting: Manipulating the Registry
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here. ArchiveDisclaimer

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.

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.

© 2015 Microsoft