A wpf application registering a background task using Msix package

%3CLINGO-SUB%20id%3D%22lingo-sub-1666871%22%20slang%3D%22en-US%22%3EA%20wpf%20application%20registering%20a%20background%20task%20using%20Msix%20package%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1666871%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20all%2C%3C%2FP%3E%3CP%3EI%20create%20a%20wpf%20project%20using%20Microsoft.Windows.SDK.Contracts%20from%20Nuget%20to%20use%26nbsp%3BWindows.ApplicationModel.Background.%3C%2FP%3E%3CP%3EThen%20use%20Msix%20to%20pack%20my%20wpf%20project%20which%20register%20a%20background%20task.%3C%2FP%3E%3CP%3EIm%20sure%20that%20the%20background%20task%20are%20registered%20successfully%2C%20(seen%20in%20powershell)%3C%2FP%3E%3CP%3Ebut%20when%20i%20trigger%20it%20with%20timezone%20change%20event%2C%20it's%20not%20triggered.%3C%2FP%3E%3CP%3Ei%20look%20into%20the%20BackgroundTaskInfrastructure%2C%20and%20there%20are%20lots%20of%20log%20showing%26nbsp%3BBackGroundTask%20can%20not%20be%20activated.%3C%2FP%3E%3CP%3EErrorCode%3D0x80270254%3C%2FP%3E%3CP%3Eany%20idea%20about%20this%20problem%3F%3F%3C%2FP%3E%3CP%20class%3D%22%22%3Ethanks.%3C%2FP%3E%3C%2FLINGO-BODY%3E
Occasional Visitor

Hi all,

I create a wpf project using Microsoft.Windows.SDK.Contracts from Nuget to use Windows.ApplicationModel.Background.

Then use Msix to pack my wpf project which register a background task.

Im sure that the background task are registered successfully, (seen in powershell)

but when i trigger it with timezone change event, it's not triggered.

i look into the BackgroundTaskInfrastructure, and there are lots of log showing BackGroundTask can not be activated.

ErrorCode=0x80270254

any idea about this problem??

thanks.

0 Replies