microsoft / microsoft/WindowsAppSDK
REGDB_E_CLASSNOTREG on AppNotificationManager.Default.Register() for packaged App.
- Dominant language
- C++
- Stars
- 4.7k
- Forks
- 471
- Avg merge
- 3d 13h
- Merged PRs (30d)
- 28
Description
### Describe the bug
I recently created a packaged app with WindowsAppSDK.
on my test system, it crashes every time **AppNotificationManager.Default.Register()** is invoked,
```
Exception Info: System.Runtime.InteropServices.COMException (0x80040154): Class not registered (0x80040154 (REGDB_E_CLASSNOTREG))
at WinRT.ExceptionHelpers.g__Throw|20_0(Int32 hr)
at WinRT.ExceptionHelpers.ThrowExceptionForHR(Int32 hr)
at ABI.Microsoft.Windows.AppNotifications.IAppNotificationManagerMethods.Register(IObjectReference _obj)
at Microsoft.Windows.AppNotifications.AppNotificationManager.Register()
at WindowsAppSDKEvaluation.Program.Main(String[] args)
```
tested with 1.1.2,and 1.1.4, all same exception.
### Steps to reproduce the bug
Install the packaged app, and launch.
### Expected behavior
Launch and enter UI.
### Screenshots
_No response_
### NuGet package version
1.1.4
### Packaging type
Packaged (MSIX)
### Windows version
Windows 10 version 1903 (18362, May 2019 Update)
### IDE
Visual Studio 2022
### Additional context
_No response_
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.