I have seen an instance where trying to instantiate a background task in Windows 8 results in it failing instantly, or throwing an UnauthorizedAccessException.

This happens when you have put the task is in a 2nd project whose build output is set to Class Library. Simply go into the project settings, and change the Output type to WinMD file.

image

By David Burela