Sunday, 13 October 2019

Friday, 12 April 2019

Error
Sharepoint 2019
Message from webpage

---------------------------

soap:ServerServer was unable to process request. ---> Failed to publish workflow: <Error><CompilerError Line="-1" Column="-1" Text="Type Microsoft.SharePoint.WorkflowActions.RootWorkflowActivityWithData is not marked as authorized in the application configuration file." /><CompilerError Line="1" Column="1" Text="The root activity type is invalid." /></Error>

---------------------------


Solution to this error is to add the below tag in the web app config.

  <authorizedType Assembly="System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" NameSpace="System.CodeDom" TypeName="CodeTypeReferenceExpression" Authorized="True" />