Fix SharePoint 2019 AddPublishingPage Error After July 2024 Update
Question details
A PowerShell script used to create SharePoint Server 2019 article pages fails with a constructor error after applying the July 2024 cumulative update.

- Product
- SharePoint Server 2019
- Device & OS
- Windows Server
- Scenario
- Running a PowerShell script to create publishing pages on an on-premises SharePoint environment.
- Observed behavior
- The script execution halts and throws the error message: 'No parameterless constructor defined for this object.'
Verify that your farm administrator account has sufficient permissions to view ULS logs, and ensure you have a recent farm backup before testing any script modifications or update rollbacks.
Post the Issue to the Microsoft Q&A Community
Since this error is isolated to SharePoint Server 2019 and a specific cumulative update, escalating to Microsoft Server experts is the most effective path to a resolution.
The 'No parameterless constructor' error often indicates an internal code change within the cumulative update that breaks existing PowerShell cmdlets or .NET calls. Because this is a server-side dependency issue rather than a user configuration error, direct intervention or patching from Microsoft's engineering team is usually required.
Navigate to the official Microsoft Q&A Community website and sign in with your Microsoft administrator credentials.
Click 'Ask a question' and provide a clear title detailing the AddPublishingPage failure.
Include your exact PowerShell script snippet, the specific July 2024 update version (KB number), and the full error stack trace. Be sure to scrub any sensitive internal domain or server names.
Tag the post specifically with 'SharePoint Server' rather than 'SharePoint Online' to ensure it reaches the correct support engineers.

Analyze ULS Logs and Verify Update Status
Check your server logs to ensure the July 2024 update was installed correctly and gather more details about the constructor failure.
Simplify Document Management with WPS Office
While resolving complex SharePoint Server and PowerShell issues requires deep IT administration, creating and managing your daily documents shouldn't be a struggle. WPS Office provides a seamless, lightweight, and entirely free alternative to Microsoft Office, letting you create stunning documents, spreadsheets, and presentations without heavy server-side dependencies.
- 1. Download the software: Visit the official WPS Office website and click the free download button for your operating system.
- 2. Install WPS Office: Run the installer and follow the simple on-screen instructions to set up the suite.
- 3. Open your files: Launch WPS Office and instantly open, edit, or save your existing Office documents.

Frequently Asked Questions
Why does the 'No parameterless constructor defined' error happen in PowerShell?
This error occurs when a script tries to create an instance of a .NET class or object that requires specific parameters, but none are provided. An update like the July 2024 patch may have modified the underlying SharePoint classes, removing the default parameterless constructor.
Can I fix this error by modifying my AddPublishingPage script?
If the required parameters for the class were changed by the update, you might be able to fix the script by supplying the newly required arguments. However, documentation for such internal changes is often sparse, making it best to consult the Microsoft Q&A community first.
Is SharePoint Online affected by this July 2024 PowerShell error?
No. Based on current reports, this specific AddPublishingPage constructor failure is isolated to SharePoint Server 2019 on-premises environments following the July 2024 cumulative update.




