I created a UWP app with desktop extensions and added the startup task as mentioned here. (I set Executable="AutoStartupTest.exe".)
I logged off and logged on and got the error in the title, and don't know how to fix it because though it makes sense - why is it not in a container? This should happen automatically, no? The link is talking about a UWP app.
EDIT
The extension snippet as requested here.
<Extensions>
<desktop:Extension Category="windows.startupTask" Executable="AutoStartupTest.exe" EntryPoint="Windows.FullTrustApplication">
<desktop:StartupTask TaskId="someId" Enabled="true" DisplayName="Hi user!" />
</desktop:Extension>
</Extensions>