<bypassTrustedAppStrongNames> Element

 

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

<configuration>
<runtime>
<bypassTrustedAppStrongNames>

<bypassTrustedAppStrongNames    
   enabled="true|false"/>  

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

Attributes

AttributeDescription
enabledRequired 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.
ValueDescription
trueStrong-name signatures on full-trust assemblies are not validated when the assemblies are loaded into a full-trust AppDomain. This is the default.
falseStrong-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

ElementDescription
configurationThe root element in every configuration file used by the common language runtime and .NET Framework applications.
runtimeContains 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.

System_CAPS_ICON_note.jpg Note

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>  

Runtime Settings Schema
Configuration File Schema
How to: Disable the Strong-Name Bypass Feature

Show: