<runtime> Element 

Contains information about assembly binding and garbage collection.


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



Child Elements

Element Description


Contains information about assembly version redirection and the locations of assemblies.

<assemblyBinding> Element for <runtime>

Contains information about assembly version redirection and the locations of assemblies.


Specifies whether the runtime searches for assemblies in directories specified by the DEVPATH environment variable.


Specifies whether the caching of binding failures, which is the default behavior in the .NET Framework version 2.0, is disabled.


Specifies whether the common language runtime runs garbage collection concurrently.


Specifies whether the common language runtime runs server garbage collection.


Specifies that the Windows identity does not flow across asynchronous points, regardless of the flow settings for the execution context on the current thread.


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

Parent Elements

Element Description


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

In the .NET Framework version 2.0, the impersonated identity flows across asynchronous points within an application domain. In the .NET Framework version 2.0, you can enable or disable the flow of impersonation across asynchronous points by properly configuring the runtime element in the machine.config file or in the application configuration file. For ASP.NET, the impersonation flow can be configured in the aspnet.config file found in the <Windows Folder>\Microsoft.NET\Framework\vx.x.xxxx directory.

By default ASP.NET disables the impersonation flow in aspnet.config file by using the following configuration settings:

      <legacyImpersonationPolicy enabled="true"/>
      <alwaysFlowImpersonationPolicy enabled="false"/>

In ASP.NET, if you want to allow the flow of impersonation instead, you must explicitly use the following configuration settings:

      <legacyImpersonationPolicy enabled="false"/>
      <alwaysFlowImpersonationPolicy enabled="true"/>

For more information, see <legacyImpersonationPolicy> Element and <alwaysFlowImpersonationPolicy> Element.

The following example shows how to redirect one assembly version to another.

      <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
            <assemblyIdentity name="myAssembly"
                              culture="neutral" />
             <bindingRedirect oldVersion=""

Community Additions