microsoft / Windows-Packaging-Samples

Windows Application Packaging Project Samples.
MIT License
55 stars 37 forks source link

System.Exception: 'Element not found' #9

Closed ali-h2010 closed 4 years ago

ali-h2010 commented 4 years ago

I am getting the following error: System.Exception: 'Element not found. (Exception from HRESULT: 0x80070490)'

On this line: https://github.com/microsoft/Windows-Packaging-Samples/blob/d91042e2e022306ea1993bb8c5c0551df45ad140/BGTask/WpfUIWithBackgroundTask/UWPBackgroundTaskCatalog.cs#L14

is there any set up needed?

rido-min commented 4 years ago

Hi @ali-h2010 Can you provide repro steps? The background task is registered through the Package manifest, hence you might need to star debugging from the packaging project.

Which versions of VS, Windows and SDK are you using?

ali-h2010 commented 4 years ago

After running the packaging project i got the real error which was missing SDK