Navigation: X# Documentation > X# Compiler Errors and Warnings
Error XS7051
SecurityAction value '{0}' is invalid for security attributes applied to a type or a method