Skip to content

COMException REGDB_E_CLASSNOTREG from Microsoft.Windows.BadgeNotifications.BadgeNotificationManager #5307

Closed
@zhuxb711

Description

@zhuxb711

Describe the bug

This exception throw when try to get Current instance for BadgeNotificationManager

Stacktrace

>	System.Private.CoreLib.dll!System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(int errorCode) Line 856
>	WinRT.Runtime.dll!WinRT.ActivationFactory.Get(string typeName, System.Guid iid) Line 72
>	Microsoft.Windows.BadgeNotifications.Projection.dll!Microsoft.Windows.BadgeNotifications.BadgeNotificationManager._objRef_global__Microsoft_Windows_BadgeNotifications_IBadgeNotificationManagerStatics.get() Line 55
>	Microsoft.Windows.BadgeNotifications.Projection.dll!Microsoft.Windows.BadgeNotifications.BadgeNotificationManager.Current.get() Line 59

Steps to reproduce the bug

var temp = Microsoft.Windows.BadgeNotifications.BadgeNotificationManager.Current;

Expected behavior

No response

Screenshots

No response

NuGet package version

Windows App SDK 1.7.0: 1.7.250310001

Packaging type

Packaged (MSIX)

Windows version

Windows 11 version 24H2 (22621, October 2024 Update)

IDE

Visual Studio 2022

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-NotificationsToast notification, badges, Live Tiles, push notifications

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions