description | title | ms.date | helpviewer_keywords | ms.assetid | ||||
---|---|---|---|---|---|---|---|---|
Learn more about: <bypassTrustedAppStrongNames> Element |
<bypassTrustedAppStrongNames> Element |
03/30/2017 |
|
71b2ebf6-3843-41e2-ad52-ffa5cd083a40 |
Specifies whether to bypass the validation of strong names on full-trust assemblies that are loaded into a full-trust xref:System.AppDomain.
<configuration>
<runtime>
<bypassTrustedAppStrongNames>
<bypassTrustedAppStrongNames
enabled="true|false"/>
The following sections describe attributes, child elements, and parent elements.
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 . |
Value | Description |
---|---|
true |
Strong-name signatures on full-trust assemblies are not validated when the assemblies are loaded into a full-trust xref:System.AppDomain. This is the default. |
false |
Strong-name signatures on full-trust assemblies are validated when the assemblies are loaded into a full-trust xref:System.AppDomain. The strong-name signature is checked only for signature correctness; it is not compared to another strong name for a match. |
None.
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 xref:System.Security.Policy.StrongName evidence (for example, has
MyComputer
zone evidence). -
Loaded into a fully trusted xref:System.AppDomain.
-
Loaded from a location under the xref:System.AppDomainSetup.ApplicationBase%2A property of that xref:System.AppDomain.
-
Not delay-signed.
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>