A data type is marked with the CLSCompliantAttribute attribute, but the assembly that contains the data type is not marked with the CLSCompliantAttribute attribute. The assembly must be marked as CLS compliant if it contains any data types marked as CLS compliant.
To correct this error
-
Make sure to apply the CLSCompliantAttribute attribute to the assembly if any data types are marked with the CLSCompliantAttribute attribute.