Navigation: X# Documentation > X# Compiler Errors and Warnings
Error XS7070
Security attribute '{0}' is not valid on this declaration type. Security attributes are only valid on assembly, type and method declarations.