Describe the bug
The AppNotificationManager fails to work on a partial trust application WinUI 3 project despite AppNotificationManager.IsSupported returning true.
Calling AppNotificationManager.Register throws System.Runtime.InteropServices.COMException: 'Unspecified error No COM servers are registered for this app'.
Calling AppNotificationManager.Show throws System.Runtime.InteropServices.COMException: 'The request is not supported. The request is not supported.'.
Steps to reproduce the bug
- Create a MSIX packaged WinUI 3 project.
- Change
EntryPoint's value to windows.partialTrustApplication.
- Comment out the
runFullTrust & systemAIModels capabilites.
- Call
AppNotificationManager.Register (In OnLaunched before window activation) and/or AppNotificationManager.Show.
- Observe the imminent existence of an exception.
Expected behavior
A regular Windows notification showing up.
Screenshots
No response
NuGet package version
2.1.3
Packaging type
Packaged (MSIX)
Windows version
Windows 11 version 23H2 (22631, June 2025 Update)
IDE
Visual Studio 2022
Additional context
No response
Describe the bug
The AppNotificationManager fails to work on a partial trust application WinUI 3 project despite AppNotificationManager.IsSupported returning true.
Calling AppNotificationManager.Register throws
System.Runtime.InteropServices.COMException: 'Unspecified error No COM servers are registered for this app'.Calling AppNotificationManager.Show throws
System.Runtime.InteropServices.COMException: 'The request is not supported. The request is not supported.'.Steps to reproduce the bug
EntryPoint's value towindows.partialTrustApplication.runFullTrust&systemAIModelscapabilites.AppNotificationManager.Register(InOnLaunchedbefore window activation) and/orAppNotificationManager.Show.Expected behavior
A regular Windows notification showing up.
Screenshots
No response
NuGet package version
2.1.3
Packaging type
Packaged (MSIX)
Windows version
Windows 11 version 23H2 (22631, June 2025 Update)
IDE
Visual Studio 2022
Additional context
No response