This is a repeat of a question that I asked in the preview forum. It turns out that this is not resolved in 8.1 RTM and I'm not sure how to fix it. The exact same code worked perfectly fine in 8.0...
I am unable to register the background agent for my application. It is giving me an exception:
System.Exception: Element not found. (Exception from HRESULT: 0x80070490)
at Windows.ApplicationModel.Background.BackgroundExecutionManager.RequestAccessAsync()
I get the same problem whether I have any breakpoints set at all (some blogs have suggested that having a breakpoints set causes the problem).
How can I fix this so I can test my background agent?
Stefan