When passing an ICA file to wfcrun32.exe from the command line and the ICA file contains the lines:
CDViewer.exe version 11.2x might exit with the error system.IO.InvalidDataException.
To resolve the issue, edit the ICA file:
Open the ICA file.
InputEncoding=ISO8859_1
InputEncoding=UTF-8
Save the ICA file.
The issue occurs because of the wrong encoding being specified in the ICA file. Citrix does not use ISO8859_1 encoding with the desktop viewer.