SharePoint 2010. Fix error Type System.CodeDom.CodeBinaryOperatorExpression is not marked as authorized in the application configuration file
In SharePoint 2010 once I had found a lot of errors in time of execution or publishing workflow processes: "(-1, -1) Type System.CodeDom.
I don't know who had found the solution, but in SharePoint 2010 to fix the problem you should add the string below to web.config of your site (web application).
<authorizedType Assembly="System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=
You should add it to all the servers in your SharePoint farm.
The update, which leds to this error, is .NET Security Only patch to resolve CVE-2018-8421 (Remote Code Execution Vulnerability).

Support for SharePoint Server 2019 ends on Tuesday, July 14, 2026
How to Never Forget Temporary Test Code: Using #if RELEASE + #error in Visual Studio