Sunday, 13 October 2019
Angular @ViewChild() error: Expected 2 arguments, but got 1
Angular 8 , ViewChild takes 2 parameters
@ViewChild(ChildDirective, {static: false}) Component
React Warning: flattenChildren(…): Encountered two children with the same key
Its issue with map.
Add index with some constant value rather than using
key={value.name + value.description}
key={'some-constant-value'+index}
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>
---------------------------
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" />
Subscribe to:
Posts (Atom)