Cause of "The specified path is invalid" error when using ScheduledToastNotification

0

I'm getting "The specified path is invalid" error when trying to show a ScheduledToastNotification, if I use ToastNotification in my app it works.

System.Exception was unhandled by user code
  HResult=-2147024735
  Message=The specified path is invalid. (Exception from HRESULT: 0x800700A1)
  Source=Windows
  StackTrace:
       at Windows.UI.Notifications.ToastNotifier.AddToSchedule(ScheduledToastNotification scheduledToast)

I'm not opening any files or dealing with paths at this point and the exception definitely occurs on the line to launch a ScheduledToastNotification, I'm using Windows 10 Universal Application Platform but can't find any reference to this error or issue anywhere

c#
toast
windows-10
win-universal-app
asked on Stack Overflow Jul 18, 2015 by RoguePlanetoid

1 Answer

0

Error "The specified path is invalid" was due to the API in the build of Windows 10 not yet supporting the API call, documentation for Windows 8.1 mentions that ScheduledToastNotification was not supported, however in the 10240 build of Windows 10 this API call now is fully supported on desktop and mobile

answered on Stack Overflow Jul 24, 2015 by RoguePlanetoid

User contributions licensed under CC BY-SA 3.0