I attempted to declare a print background task (PrintSupportExtensionBackGroundTask) in the appx manifest and register it with the system. However, when the foreground application (i.e., the main program) runs, the background task registration fails. Could anyone explain what the system-returned error code means, or how I can debug/trace the process of system registration for background tasks?
The returned error code is: 0x800401F9
Detailed information is as follows:
-
Example quick fix script (run as admin) You can attempt resetting the service startup and starting it via command prompt: sc config BrokerInfrastructure start= auto sc start BrokerInfrastructure After this, reboot and verify if the service stays up. (Based on community advice).Stacy Langdon– Stacy Langdon2025年11月03日 03:43:40 +00:00Commented Nov 3, 2025 at 3:43
-
short answer first: 0x800401F9 = CO_E_ERRORINDLL ("Error in the DLL"). It’s a COM activation failure, i.e., Windows tried to spin up your background task’s WinRT component and something in the DLL/activation factory didn’t check out.Stacy Langdon– Stacy Langdon2025年11月03日 03:49:15 +00:00Commented Nov 3, 2025 at 3:49