OOP Background Task with SelfContained WinUI/WinAppSDK desktop app doesn't run if dotnet is not installed

Jos Huybrighs 136 Reputation points
2024-01-23T13:42:10.23+00:00

I have a beta version available of my WinUI/WinAppSDK desktop app for a restricted set of users via Microsoft Store Package Flights. One of the users reports that none of the 3 background tasks in the app are executed. The 3 type of tasks are: a 15 minutes timer triggered task, a portable device watcher task, and a session connect watcher task. All 3 are OOP BG tasks and run without issues on the other user's machines. The manifest file of course is correctly set up with the necessary entries (otherwise the tasks wouldn't run).

Event viewer on the user's computer gives the following error (in the BackgroundTaskInfrastructure section) for the 'session connect' task:

The background task with entrypoint SyncFolder.BackgroundTasks.ExecWhenSessionConnectedTask and name ExecWhenSessionConnected is not activated with error code 0x80008083.

The same error is being logged for the 2 others. The fault occurs on Windows 10, build 19045.3930.

I looked around what 0x80008083 could mean but with no luck. Any idea?

Windows App SDK
Windows App SDK
A set of Microsoft open-source libraries, frameworks, components, and tools to be used in apps to access Windows platform functionality on many versions of Windows. Previously known as Project Reunion.
745 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Jos Huybrighs 136 Reputation points
    2024-01-24T09:38:37.7366667+00:00

    OK, issue has been reported on Github. See https://github.com/microsoft/WindowsAppSDK/discussions/4115

    0 comments No comments