<assemblies> Element

Specifies the assemblies that are used during compilation of an ASP.NET resource.

**         <assemblies>**

   <add assembly="assembly"/>
   <remove assembly="assembly"/>


Subtag Description
<add> Adds an assembly reference to use during compilation of a dynamic resource. ASP.NET automatically links this assembly to the resource when compiling each code module.

The value of <add> is an assembly name, not a DLL path. ASP.NET looks up the assembly name to find its physical DLL location. You can optionally specify the wildcard character * (an asterisk) to add every assembly within an application's private assembly cache, which is located either in the \bin subdirectory of an application or in the.NET Framework install directory (systemroot\Microsoft.NET\Framework\version\).

<remove> Removes the specified assembly reference from the compile settings. The value of <remove> must exactly match that of a previous <add> directive. Wildcard selections are not supported.
<clear> Removes all assembly references currently contained in or inherited by the specified Web.config file.


The following example adds an assembly reference to an application.

         <add assembly="System.Data, Version=1.0.2411.0, 


Contained Within: <system.web>

Web Platform: IIS 5.0, IIS 5.1, IIS 6.0

Configuration File: Machine.config, Web.config

Configuration Section Handler: System.Web.UI.CompilationConfigurationHandler

See Also

<compilation> Element | ASP.NET Configuration | ASP.NET Settings Schema