Compiler Error C3762


The new home for Visual Studio documentation is Visual Studio 2017 Documentation on

The latest version of this topic can be found at Compiler Error C3762.

unable to process attribute 'attribute'

A user-defined attribute that inherits from System.Security.Permissions.SecurityAttribute is being used to define a security attribute. Such an attribute cannot be used in the same assembly where it is defined.