Exception on pinning App to taskbar

Heiko 716 Reputation points
2021-11-12T17:11:18.247+00:00

Hi,

when I try to pin my app to the taskbar, I get an exception "Interface not registered" and error 0x80040155 when calling RequestPinCurrentAppAsync().

It is a WPF app that has been converted to a bridge app.

What is the cause of the problem?

private async void buttonPinToTaskbar_Click(object sender, RoutedEventArgs e)
{
    TaskbarManager taskbar = TaskbarManager.GetDefault();

    if (!await taskbar.IsCurrentAppPinnedAsync())
        await taskbar.RequestPinCurrentAppAsync();
}
Universal Windows Platform (UWP)
Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,172 questions
{count} votes

Accepted answer
  1. Heiko 716 Reputation points
    2021-11-16T18:56:52.227+00:00

    Link-6305

    It seems that it is not supported for desktop bridge apps.


0 additional answers

Sort by: Most helpful