| Previous | Next |
| ERROR_FS_DRIVER_REQUIRED | ERROR_DEBUG_ATTACH_FAILED |
ERROR_CANNOT_LOAD_REGISTRY_FILE
A registry hive could not be loaded
A registry hive is a persistent group of keys and values backed by one or more files. Loading a hive is different from opening an ordinary key: APIs such as RegLoadKey attach registry data from a hive file beneath a selected key. This error points at that file-level load path, including the hive itself and the recovery data Windows may need to make the hive consistent.
Do not diagnose the code as a missing application setting. First identify the exact hive file and the operation that attempted to mount or restore it. Confirm that the file exists, the calling context has the required backup and restore privileges where the API requires them, and the volume can read the hive and its supporting files. If the same hive also reports recovery or I/O errors, preserve the original files before attempting repair so that a partially recovered copy does not replace the only forensic evidence.
What to inspect
- Record the full hive file path and target registry key used by the load operation.
- Check file presence, volume I/O errors, and required registry load privileges.
- Preserve the hive and supporting log files before testing restore or replacement.
References
- Microsoft: RegLoadKeyW
- Microsoft: RegRestoreKeyW
- Microsoft: Windows registry information for advanced users
Looking for a different code? Search another status or error code.