I am using SharePoint 2013 farm if I try to publish Workflow for Document library getting below error.
(-1, -1) Type System.CodeDom.CodeBinaryOperatorExpression is not marked as authorized in the application configuration file.) (0, 0) Activity 'ID5' validation failed: Property "Condition" has invalid value. Condition expression is invalid. The condition expression cannot be null.)
if I check for errors before publishing, there were no errors.