-

CIL Generator Error (CILG0053): The length '...' of type '...' is not valid

The CIL Generator has detected an invalid string declaration in a referenced C# library. The length of the user-defined string type does not match with the length (string usage) in the IEC program.

Remedy

Contact the provider of the library.

If the library source code is available and can be edited, correct the string length and release the library again.