0

I have a problem trying to replicate the File Picker example in link, I create a new application using a Universal Application Windows store template.

I extract the content of the class Scenario02 and create a similar one in my example. This class implements an interface called IFileOpenPickerContinuable which I extract from the class ContinuationManager and create a file in my project with the same name to implement that interface.

I don't get any compilation errors when I run the application. When the line openPicker.PickMultipleFilesAndContinue(); is executed, it throw a exception.

'UnauthorizedAccessException'(Access is denied. Exception from HRESULT: 0x80070005) exception.

In the Microsoft example they don't modify any of the manifests of the application. Do you know what can I be missing?

Brian Tompsett - 汤莱恩
  • 5,753
  • 72
  • 57
  • 129

1 Answers1

0

(Question solved in a question edit. Converted to a community wiki answer.)

The OP wrote:

Solved! The problem was trying to launch the data picker in the class constructor.

Community
  • 1
  • 1
Brian Tompsett - 汤莱恩
  • 5,753
  • 72
  • 57
  • 129