Partager via


<disableCachingBindingFailures> Element 

Specifies whether the caching of binding failures is disabled.

<disableCachingBindingFailures enabled="0|1"/>

Attributes and Elements

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

Attributes

Attribute Description

enabled

Required attribute.

Specifies whether the caching of binding failures is disabled.

Enabled Attribute

Value Description

0

Do not disable the caching of binding failures. This is the default binding behavior in the .NET Framework version 2.0.

1

Disable the caching of binding failures. This setting reverts to the binding behavior of the .NET Framework version 1.1.

Child Elements

None.

Parent Elements

Element Description

<configuration> Element

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

<runtime> Element

Contains information about assembly binding and garbage collection.

Remarks

In the .NET Framework version 2.0, the default behavior when binding assemblies is to cache binding failures. That is, if an attempt to load an assembly fails, later requests for the same assembly are failed immediately, without any attempt to locate the assembly.

Example

The following code example shows how to disable the caching of assembly binding failures.

<configuration>
   <runtime>
      <disableCachingBindingFailures enabled="1" />
   </runtime>
</configuration>

See Also

Reference

Runtime Settings Schema

Concepts

How the Runtime Locates Assemblies

Other Resources

Configuration File Schema for the .NET Framework