question

zipswich avatar image
0 Votes"
zipswich asked zipswich commented

"Exception from HRESULT: 0x80270301" meaning?

             StorageItemThumbnail siThumbnail = await storageFileVideo.GetThumbnailAsync(
                 ThumbnailMode.PicturesView,
                 300, ThumbnailOptions.UseCurrentScale);

The above code occasionally throws the following exception:

System.Exception: Exception from HRESULT: 0x80270301
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

Could anyone shed some light on the meaning of this exception?




windows-uwp
· 2
5 |1600 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.

What's the app's Microsoft.NETCore.UniversalWindowsPlatform version? And have tested with other machine with blank app?

0 Votes 0 ·

6.2.13
176223-image.png


0 Votes 0 ·
image.png (69.1 KiB)

1 Answer

Castorix31 avatar image
1 Vote"
Castorix31 answered zipswich commented

Apparently,
0x80270301 = E_SHELL_EXTENSION_BLOCKED

· 6
5 |1600 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.

Thank you for trying to help. The file extension is ".mp4". It is supposed to be supported.
What does E_SHELL_EXTENSION_BLOCKED mean?

0 Votes 0 ·

I did a test with a random .mp4 with the same code on my OS (Windows 10, 1909) and I cannot reproduce this error, it works normally...

1 Vote 1 ·

Thank you for looking into it.
I am sorry but I have just realized that I forgot to emphasize "occasionally" as I originally intended. I edited the question and boldfaced "occasionally".
I guess this happens only under a certain condition. I just hope I can get a hint about such a condition.

0 Votes 0 ·
Show more comments