Navigation: X# Documentation > X# Compiler Errors and Warnings
Error XS0641
Attribute '{0}' is only valid on classes derived from System.Attribute