The code has an enumeration that is declared to have an underlying base type that is not a primitive integral type. Valid base types for an enumeration are the integral data types: int, short, long, byte, uint, ushort, ulong, and sbyte.
To correct this error
-
Make sure that the base type for each enumeration is a valid integral data type.