**I’m using the 3.9.2 version of the toolkit with the updated AppdeployToolkitConfig.xml and the Appdeploytoolkitmain.ps1 files (basically v3.9.3), and I keep running into this access denied error no matter if I run as system or elevated administrator account. As you can see from the error from the log below, I’m updating the version of VLC in our environment.
It will show the normal toast notifications from the regular PSADT, but throws the error when attempting to show the actual PSADT.Toastnotification toast notifications. I read on here where this was an issue showing balloon notifications with this version and some previous versions, but I have tried several different versions to the same effect. The regular balloon notifications work fine, but I think the regular user base we have would like the look and feel of the ToastNotification extension Toast notifications better if I can get those working. **
I’m hoping this is an easy fix.
The snippet of the error from CMTrace is below:
[Post-Installation] :: Unable to show Toast Notification. Falling back to original function…
Error Record:Message : Exception calling “Show” with “1” argument(s): “Access is denied. (Exception from HRESULT: 0x80070005
(E_ACCESSDENIED))”
InnerException : System.UnauthorizedAccessException: Access is denied. (Exception from HRESULT: 0x80070005
(E_ACCESSDENIED))
at Windows.UI.Notifications.ToastNotifier.Show(ToastNotification notification)
at CallSite.Target(Closure , CallSite , Object , Object )FullyQualifiedErrorId : UnauthorizedAccessException
ScriptStackTrace : at ,
C:\Temp\vlc\AppDeployToolkit\PSADT.ToastNotification\ToastNotificationExtension.ps1: line 2240
at Show-BalloonTip,
C:\Temp\vlc\AppDeployToolkit\PSADT.ToastNotification\ToastNotificationExtension.ps1: line 2286
at , : line 117
at Exit-Script,
C:\Temp\vlc\AppDeployToolkit\PSADT.ToastNotification\ToastNotificationExtension.ps1: line 673
at , C:\Temp\vlc\Deploy-Application.ps1: line 322
at , : line 1
at , : line 1PositionMessage : At C:\Temp\vlc\AppDeployToolkit\PSADT.ToastNotification\ToastNotificationExtension.ps1:2240 char:6
+ … $null = [Windows.UI.Notifications.ToastNotificationManage …
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~Error Inner Exception(s):
Message : Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))
InnerException :Show-BalloonTip 3/20/2023 8:43:59 PM 12652 (0x316C)