Export (0) Print
Expand All

<bypassTrustedAppStrongNames> Element

Specifies whether to bypass the validation of strong names on full-trust assemblies that are loaded into a full-trust AppDomain.

<configuration> Element
  <runtime> Element
    <bypassTrustedAppStrongNames> Element
<bypassTrustedAppStrongNames  
   enabled="true|false"/>

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

Attributes

Attribute

Description

enabled

Required attribute.

Specifies whether the bypass feature that avoids validating strong names for full-trust assemblies is enabled. When this feature is enabled, strong names are not validated for correctness when the assembly is loaded. The default is true.

enabled Attribute

Value

Description

true

Strong-name signatures on full-trust assemblies are not validated when the assemblies are loaded into a full-trust AppDomain. This is the default.

false

Strong-name signatures on full-trust assemblies are validated when the assemblies are loaded into a full-trust AppDomain. The strong-name signature is checked only for signature correctness; it is not compared to another strong name for a match.

Child Elements

None.

Parent Elements

Element

Description

configuration

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

runtime

Contains information about assembly binding and garbage collection.

The strong-name bypass feature avoids the overhead of strong-name signature verification of full-trust assemblies.

The bypass feature applies to any assembly that is signed with a strong name and that has the following characteristics:

  • Fully trusted without the StrongName evidence (for example, has MyComputer zone evidence).

  • Loaded into a fully trusted AppDomain.

  • Loaded from a location under the ApplicationBase property of that AppDomain.

  • Not delay-signed.

NoteNote

If the bypass feature has been turned off for all applications on the computer by using a registry key, this configuration file setting has no effect. For more information, see How to: Disable the Strong-Name Bypass Feature.

The following example shows how to specify the behavior that validates the strong-name signature on full-trust assemblies.

<configuration>
   <runtime>
      <bypassTrustedAppStrongNames enabled="false"/>
   </runtime>
</configuration>
Show:
© 2014 Microsoft