question

zipswich avatar image
0 Votes"
zipswich asked ·

StorageLibrary.GetLibraryAsync(KnownLibraryId.Pictures) throws "The method or operation is not implemented."

 await StorageLibrary.GetLibraryAsync(KnownLibraryId.Pictures);

The above code occasionally throws the following exception:

System.NotImplementedException: The method or operation is not implemented.
Stack trace:
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() + 0x21
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task) + 0x70
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task) + 0x38
at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task) + 0x17

It reported by app analytics from different users in different countries. All have AMD64 architecture with various OS versions:
10.0.19041.153
10.0.18363.1379
10.0.18363.449

Could anyone shed some light on this?


windows-uwp
· 3
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hello @zipswich
We can't reproduce this, I tested within my environment intel x86 architecture, it works well, for this problem, we suggest you post it with Windows feed back hub app, And I will discuss with team.

0 Votes 0 ·

@NicoZhu-MSFT Thank you for looking into this.
I am unable to reproduce it either. The app analytics keeps reporting this though it works for most users. I am not sure if it happens consistently for users who encounter this. I asked this question to get some hints about possible causes so that we can add more entries in analytics to help diagnose this or give the user a useful message.

0 Votes 0 ·

await StorageLibrary.GetLibraryAsync(KnownLibraryId.Pictures) also throws the following exceptions on some computers occasionally:

System.Exception: Unspecified error (Exception from HRESULT: 0x80004005)
Stack Trace:
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() + 0x21
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task) + 0x70
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task) + 0x38
at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task) + 0x17


0 Votes 0 ·

0 Answers