| Previous | Next |
| NS_E_DRM_HARDWAREID_MISMATCH | NS_E_DRM_MIGRATION_INVALID_LEGACYV2_DATA |
NS_E_INVALID_DRMV2CLT_STUBLIB
The exact DRM condition
NS_E_INVALID_DRMV2CLT_STUBLIB is Windows Media DRM HRESULT 0xC00D2790. It identifies the application is linked to the wrong DRM v2 client stub library. The useful scope is the controlled import/export path that packages legacy DRM state, validates the migration image and source identity, and commits eligible licenses to a supported target environment; it is not a generic statement that the media player, network or file system failed.
Compare the stublib identity with the application/DLL and target runtime.
The surrounding protocol and store state
Migration is not equivalent to copying license-store files: the importer validates source state, target support and protected identities. A migration image, target-state corruption and an already imported license are independent outcomes and should not be collapsed into one generic restore failure.
Evidence worth preserving
The smallest useful record contains:
- Protected identity: migration image identity, hash and creation time.
- Operation state: legacy V2 secure-store entry and supplied password.
- Persistence or transport: importer plug-in availability and current operation state.
- Security context: per-license duplicate or import result.
- Correlation point: source and target OS versions and user SIDs.
Related codes and the diagnostic split
| Result | Different condition |
|---|---|
NS_E_DRM_MIGRATION_INVALID_LEGACYV2_DATA | Legacy DRM v2 data supplied to the importer is malformed or inconsistent. |
NS_DRM_E_MIGRATION_IMAGE_ALREADY_EXISTS | A migration image already exists for the selected operation or destination. |
NS_E_DRM_MIGRATION_LICENSE_ALREADY_EXISTS | The target already contains the license being imported. |
Diagnostic sequence
- Preserve this result, the calling interface and the first lower-level status before a wrapper replaces it.
- Correlate this result with one KID/license ID, content hash, device certificate or migration operation ID for this path.
- Reconstruct the state transition immediately preceding “invalid drmv2clt stublib” instead of starting from the final player dialog.
- Prove the boundary by ensuring you can compare the stublib identity with the application/DLL and target runtime.
- After you link and deploy the stublib issued for that application, verify both the requested right and the final store/device state.
Correcting the producing condition
Resolve the underlying condition directly: link and deploy the stublib issued for that application. A player reinstall, reboot or new license request is useful only when it changes the condition “invalid drmv2clt stublib” and can be verified against the original evidence.
Representative case: A shared DLL carries a stublib intended for a different executable.
Actions that do not prove a fix
- Avoid running concurrent playback or DRM operations against the source while migration owns it.
- Avoid editing migration images or combining data from different source machines.
Regression check
Repeat the operation that originally returned it. Assert the exact HRESULT at the producing API in the failing “invalid drmv2clt stublib” fixture; then change only the relevant precondition and confirm that the corrected run completes without substituting a neighboring DRM result. After correcting it, verify the requested action and the final license-store, secure-clock, device or migration state relevant to “invalid drmv2clt stublib”.
Code-specific operational note
The user-facing message “The wrong stublib has been linked to an application or DLL using drmv2clt. Dll.” describes the visible condition but does not identify the producing API, object instance, or protected identity by itself.
Technical references
- Backing up and restoring DRM licenses — platform documentation used to distinguish it from adjacent results.
- Obtaining the required DRM library — official Windows Media DRM context.
- DRM client programming guide — API and state rules relevant to this result.
- Windows Media DRM error codes
Looking for a different code? Search another status or error code.