An "Unable to cast object of type 'System.String' to type 'System.Collections.Generic.IEnumerable`1[System.Object]'" Error Occurs in the Condition Editor.

June 23, 2009 | KB: 1012266
Workflow Suite 8.0

Summary

In the condition editor, when configuring a condition involving a field value on an entry, you may receive the following error message:

    Unable to cast object of type 'System.String' to type 'System.Collections.Generic.IEnumerable`1[System.Object]'.

The error only occurs when the selected field contains a default value.

Resolution 1

This issue is resolved in Workflow 8.0.1 and later. Please upgrade to the latest version of Laserfiche Workflow.

Resolution 2

There is a hotfix available for the Workflow Suite 8.0 Workflow Designer. The fix includes updated versions of the following files:

  • Laserfiche.Workflow.Designer.Base.dll (version 8.0.0.181).
  • LaserficheConnectionCore.dll (version 8.0.0.181)

To update Workflow Designer 8.0

  1. If the Workflow Server and/or the Workflow Subscriber are installed on the same computer as the Workflow Designer, stop the appropriate Laserfiche Workflow Services.
  2. Click the following link to download a zip file containing the hotfix files.
  3. Hotfix_SCR49033.zip

  4. Extract the contents of the zip file to a temporary location.
  5. Drag and drop the updated versions of the files into the Windows Global Assembly Cache at "C:\Windows\assembly."

Note: User Account Control (UAC) prevents you from manually replacing files in the Global Assembly Cache. If UAC is enabled on your Windows Vista or Windows Server 2008 computer, you must first disable UAC to replace the dll. After replacing the file, re-enable UAC.