What does Windows error code 14006 (ERROR_SXS_ACTIVATION_CONTEXT_DISABLED) mean?

 
Previous Next
ERROR_SXS_MANIFEST_PARSE_ERROR ERROR_SXS_KEY_NOT_FOUND

ERROR_SXS_ACTIVATION_CONTEXT_DISABLED

ERROR_SXS_ACTIVATION_CONTEXT_DISABLED means that code attempted to activate an activation context that Windows considers disabled. This is normally a lifecycle or state-management problem in code using the activation-context APIs rather than a simple missing-file condition.

What to check

  • Track the handle returned when the activation context was created and verify it was not released or disabled before use.
  • Balance activation and deactivation calls on the same execution path and preserve the activation cookie where required.
  • Avoid sharing one mutable activation-context lifecycle across unrelated threads without a documented ownership model.

Recreating or reactivating the context without understanding why it became disabled can hide a use-after-release or incorrect nesting bug.

Microsoft: activation context reference


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