'"Error showing an incoming reccurrence notification" in Windows 7

This code:

(Imports Microsoft.Toolkit.Uwp.Notifications)

Try
   Dim nts As New ToastContentBuilder()
   nts.SetToastScenario(ToastScenario.Reminder)
   nts.AddText(My.Resources.Messages.Recourrences)
   nts.AddText(SomeText)
   nts.SetToastDuration(ToastDuration.Long)
   nts.Show()

works in Win10 but generates this "ex.message" error in Windows 7:

Error showing an incoming reccurrence notification. Could not find Windows Runtime type 'Windows.Data.Xml.Dom.XmlDocument'

The PC with Win7 has installed the "Microsoft .NET Framework Version = 4.8.03761".

Why? How to avoid the error in Win7?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source