Skip to content

[HELP]Using Uwp.Notifications in VSTO(winforms) #4525

@beatofangel

Description

@beatofangel

I have a VSTO Add-in project using Uwp.Notifications to toast local notifications. It works fine when I debug it locally.
But it seems that Uwp.Notifications doesn't work in some cases and throws an exception.

System.ArgumentException: The parameter is incorrect. (Exception from HRESULT: 0x80070057 (E_INVALIDARG))
at Microsoft.Toolkit.Uwp.Notifications.ToastContentBuilder.Show(CustomizeToast customize)
...

I have tried several scenarios and the results are listed below.

Debug Mode
(Visual Studio)
Install from
local vsto manifest
Clickonce
(Install via UNC)
Clickonce
(Install via http/https)

After googling for a long time, I still haven't got any clue to solve this problem.
Does Uwp.Notifications have any restrictions on Apps or Add-ins published via clickonce and installed from internet via http/https?

Metadata

Metadata

Assignees

No one assigned

    Labels

    WinUI 💠Related to WinUI 3 Version or when paired with External can mean requires fix in WinUI 2/3.notifications 🔔

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions