Skip to content

Can't send e-mail due to error with System.Web.UI.WebControls.Table #64

Description

@nabsltd

I seem to have everything configured correctly, but in Powershell 7 (7.5.4), I get the following error when trying to send a report:

Could not load type 'System.Web.UI.WebControls.Table' from assembly 'System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.

Here's the run with debugging turned on:

PS C:\> Get-WindowsUpdate -MicrosoftUpdate -Verbose -ShowPreSearchCriteria -IgnoreRebootRequired:$true -IgnoreReboot -AcceptAll -Install -SendReport -Debug
DEBUG: 11/15/2025 12:57:03 PM CmdletStart: Get-WindowsUpdate
DEBUG: 11/15/2025 12:57:03 PM Test smtp settings
DEBUG: 11/15/2025 12:57:03 PM ParameterSetName: MicrosoftUpdate
DEBUG: 11/15/2025 12:57:03 PM Set pre search criteria: IsInstalled = 0
DEBUG: 11/15/2025 12:57:03 PM Set pre search criteria: IsHidden = 0
DEBUG: 11/15/2025 12:57:03 PM Set pre search criteria: RebootRequired = 0
DEBUG: 11/15/2025 12:57:03 PM Search criteria is: IsInstalled = 0 and IsHidden = 0 and RebootRequired = 0
PreSearchCriteria: IsInstalled = 0 and IsHidden = 0 and RebootRequired = 0
DEBUG: 11/15/2025 12:57:03 PM CLAYMORE: Connecting...
DEBUG: 11/15/2025 12:57:03 PM Module version: 2.2.1.5
DEBUG: 11/15/2025 12:57:03 PM Dll version: 2.2.1.5
DEBUG: 11/15/2025 12:57:03 PM UpdateSessionObj mode: Local
DEBUG: 11/15/2025 12:57:03 PM ServiceManagerObj mode: Local
DEBUG: 11/15/2025 12:57:03 PM Set source of updates to Microsof Update
DEBUG: 11/15/2025 12:57:03 PM Search for ServiceID. Set source of updates to Microsoft Update
VERBOSE: CLAYMORE (11/15/2025 12:57:03 PM): Connecting to Microsoft Update server. Please wait...
VERBOSE: Found [2] Updates in pre search criteria
DEBUG: 11/15/2025 12:57:25 PM Security Intelligence Update for Microsoft Defender Antivirus - KB2267602 (Version 1.441.246.0) - Current Channel (Broad)
DEBUG: 11/15/2025 12:57:25 PM Set post search criteria: RebootBehavior
DEBUG: 11/15/2025 12:57:25 PM Update was not filtered
DEBUG: 11/15/2025 12:57:25 PM Realtek - Net - 7/5/2017 12:00:00 AM - 10.19.705.2017
DEBUG: 11/15/2025 12:57:25 PM Set post search criteria: RebootBehavior
DEBUG: 11/15/2025 12:57:25 PM UpdateAccessFalse
VERBOSE: Found [1] Updates in post search criteria
DEBUG: 11/15/2025 12:57:25 PM Show update to accept: Security Intelligence Update for Microsoft Defender Antivirus - KB2267602 (Version 1.441.246.0) - Current Channel (Broad)
DEBUG: 11/15/2025 12:57:25 PM Accepted
VERBOSE: Choosed pre Search Criteria: (UpdateID = '5eb32f05-d8a5-4103-b4d4-77e125bcd929' and RevisionNumber = 200)

X ComputerName Result     KB          Size Title
- ------------ ------     --          ---- -----
1 CLAYMORE     Accepted   KB2267602    2GB Security Intelligence Update for Microsoft Defender Antivirus - KB2267602 (Version 1.441.246.0) - Current Channel (…
VERBOSE: Accepted [1] Updates ready to Download
DEBUG: 11/15/2025 12:57:25 PM Show update to download: Security Intelligence Update for Microsoft Defender Antivirus - KB2267602 (Version 1.441.246.0) - Current Channel (Broad)
DEBUG: 11/15/2025 12:57:27 PM Downloaded
2 CLAYMORE     Downloaded KB2267602    2GB Security Intelligence Update for Microsoft Defender Antivirus - KB2267602 (Version 1.441.246.0) - Current Channel (…
VERBOSE: Downloaded [1] Updates ready to Install
DEBUG: 11/15/2025 12:57:27 PM Show update to install: Security Intelligence Update for Microsoft Defender Antivirus - KB2267602 (Version 1.441.246.0) - Current Channel (Broad)
DEBUG: 11/15/2025 12:57:36 PM Installed
DEBUG: 11/15/2025 12:57:36 PM Reboot is required
3 CLAYMORE     Installed  KB2267602    2GB Security Intelligence Update for Microsoft Defender Antivirus - KB2267602 (Version 1.441.246.0) - Current Channel (…
VERBOSE: Installed [1] Updates
DEBUG: 11/15/2025 12:57:36 PM Return installed update list
DEBUG: 11/15/2025 12:57:36 PM Send report
Get-WindowsUpdate: Could not load type 'System.Web.UI.WebControls.Table' from assembly 'System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions