Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
<legacyV1CASPolicy> Element

<legacyV1CASPolicy> Element 

Specifies whether the runtime uses legacy code access security (CAS) policy.


The following sections describe attributes, child elements, and parent elements.


Attribute Description


Required attribute.

Specifies whether the runtime uses legacy CAS policy.

Enabled Attribute

Value Description


Does not use legacy CAS policy. This is the default.


Uses legacy CAS policy.

Child Elements


Parent Elements

Element Description


The root element in every configuration file used by the common language runtime and .NET Framework applications.


Contains information about runtime initialization options.

In the .NET Framework versions 1.0 and 1.1, identity permissions could not have an Unrestricted state. In the .NET Framework version 2.0, identity permissions can be Unrestricted. Use this element in the configuration file for an application to specify the legacy CAS behavior for identity permissions. You can specify the legacy CAS behavior for all applications on a computer by setting the environment variable COMPLUS_LegacyV1CASPolicy to 1.

This element can be used only in the application configuration file.

The following example shows how to enable legacy CAS policy for an application.

      <legacyV1CASPolicy enabled="true"/>

Community Additions

© 2015 Microsoft