From 454ed8391626d3d396a3f6751abf143ae507bc24 Mon Sep 17 00:00:00 2001 From: tigattack <10629864+tigattack@users.noreply.github.com> Date: Tue, 2 Apr 2024 14:44:33 +0100 Subject: [PATCH] fix(alertsender): load System.Web assembly --- AlertSender.ps1 | 1 + 1 file changed, 1 insertion(+) diff --git a/AlertSender.ps1 b/AlertSender.ps1 index 27cbe49..600273b 100644 --- a/AlertSender.ps1 +++ b/AlertSender.ps1 @@ -36,6 +36,7 @@ $Config = $Config | ConvertFrom-Json # Import modules. Import-Module Veeam.Backup.PowerShell -DisableNameChecking Get-Item "$PSScriptRoot\resources\*.psm1" | Import-Module +Add-Type -AssemblyName System.Web # Start logging if logging is enabled in config