Security attribute '<attributename>' is not valid: <error>
The common language runtime does not accept the attribute in a security context.
Error ID: BC30128
To correct this error
Remove the attribute from the declaration or replace it with an attribute that is valid for the context.
Examine the quoted error message and take appropriate action.