What does NTSTATUS 0xC0EC0002 (STATUS_APPEXEC_INVALID_HOST_GENERATION) mean?

 
Previous Next
STATUS_APPEXEC_HANDLE_INVALIDATED STATUS_APPEXEC_UNEXPECTED_PROCESS_REGISTRATION

STATUS_APPEXEC_INVALID_HOST_GENERATION

The supplied host-generation token is no longer valid

The documented message says the host generation carried by the operation has been invalidated. The generation should be treated as an opaque version or lifetime token; public documentation does not define its representation or promise that it changes only for one event such as a process restart.

This status commonly points to work created against older host state and completed after that state was replaced or torn down. The caller should resolve the current host through the owning API and rebuild every generation-dependent request field. Merely substituting a guessed generation value can mix old and new state.

What to inspect

  • Log the supplied and current generation values when the returning component exposes both.
  • Record host ID, request ID, user, package identity, and the event that invalidated the older generation.
  • Cancel asynchronous work whose generation no longer matches the current host state.
  • Obtain fresh handles and request data from the supported activation or host-management API.

References


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