Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Specifies the assemblies that are used during compilation of an ASP.NET resource.
<configuration>
<system.web>
<compilation>
** <assemblies>**
<assemblies>
<add assembly="assembly"/>
<remove assembly="assembly"/>
<clear/>
</assemblies>
Subtags
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. |
Example
The following example adds an assembly reference to an application.
<configuration>
<compilation>
<assemblies>
<add assembly="System.Data, Version=1.0.2411.0,
Culture=neutral,
PublicKeyToken=b77a5c561934e089"/>
</assemblies>
</compilation>
</configuration>
Requirements
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