What does Windows error code 15146 (ERROR_MRM_DIRECT_REF_TO_NON_DEFAULT_RESOURCE) mean?

 
Previous Next
ERROR_OPERATION_NOT_ALLOWED_FROM_SYSTEM_COMPONENT ERROR_MRM_GENERATION_COUNT_MISMATCH

ERROR_MRM_DIRECT_REF_TO_NON_DEFAULT_RESOURCE

ERROR_MRM_DIRECT_REF_TO_NON_DEFAULT_RESOURCE means a direct reference points at a qualifier-specific candidate instead of a default resource candidate. Such a reference can break when the runtime context selects another variant.

Inspect the referenced resource and its qualifier set to find the neutral or default logical resource that should be addressed instead. Direct links to one variant bypass normal candidate selection and are fragile across contexts.

What to check

  • Reference the logical named resource rather than hard-coding a non-default variant.
  • Ensure the named resource has a neutral or default candidate for fallback.
  • Review the PRI dump to distinguish direct candidate paths from logical resource names.
makepri dump /if resources.pri /of resources.pri.xml

Microsoft: Manage resources with MRT Core

Microsoft: Resource Management System and PRI files

Microsoft: MakePri.exe command-line options


Looking for a different code? Search another status or error code.