Unable to publish or run workflows after installing September PU

  • 26 March 2021
  • 0 replies
  • 19 views

Issue

Unable to publish or run workflows  after installing SharePoint On-Premises September 2022 PU on SharePoint 2013, 2016, 2019. This is most likely to occur for Document Generation but could occur for other actions.

Error

The following errors would be expected in the logs:

 

  • <Error><CompilerError Line="-1" Column="-1" Text="Type System.Workflow.ComponentModel.Serialization.ArrayExtension is not marked as authorized in the application configuration file." /><CompilerError Line="-1" Column="-1" Text="Type System.Workflow.ComponentModel.Serialization.ArrayExtension is not marked as authorized in the application configuration file." /></Error>
  • <Error><CompilerError Line="-1" Column="-1" Text="Type System.Workflow.ComponentModel.Serialization.TypeExtension is not marked as authorized in the application configuration file." /><CompilerError Line="-1" Column="-1" Text="Type System.Workflow.ComponentModel.Serialization.TypeExtension is not marked as authorized in the application configuration file." /></Error>

 

Resolution

  1. To resolve the issue, add the following lines to all of the SharePoint web application's web.config. These need to be added in the authorizedTypes config section (configuration -> configSections -> System.Workflow.ComponentModel.WorkflowCompiler -> authorizedTypes -> targetFx). Attached is also a PowerShell script that will add the required entries. <authorizedType Assembly="System.Workflow.ComponentModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" Namespace="System.Workflow.*" TypeName="ArrayExtension" Authorized="True" /> <authorizedType Assembly="System.Workflow.ComponentModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" Namespace="System.Workflow.*" TypeName="ArrayExtension" Authorized="True" /> <authorizedType Assembly="System.Workflow.ComponentModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" Namespace="System.Workflow.*" TypeName="TypeExtension" Authorized="True" /> <authorizedType Assembly="System.Workflow.ComponentModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" Namespace="System.Workflow.*" TypeName="TypeExtension" Authorized="True" />‚Äč
  2. After making the update you will need to perform an IISReset. Also restarting the OWSTimer service may also be required in case workflows are running on the timer service process.

 

 

Additional Information

This issue is coming from a new change to address Common Vulnerabilities and Exposures that were delivered in the September Public Updates for SharePoint Server.

 

We will provide an update once the resolution has been included in an updated build of Nintex Workflow for SharePoint On Premises.

 

Related Links


0 replies

Be the first to reply!

Reply