Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

remove Element for assemblies for compilation (ASP.NET Settings Schema) 

Removes a reference to an inherited assembly name from the collection.


<remove 
   assembly="assembly"
/>

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

Attributes

Attribute Description

assembly

Required String attribute.

Specifies the name of the assembly to remove from the collection. The format is a comma-separated assembly combination consisting of version, culture, and public key tokens. This string should match the assembly attribute of the add element that is in the configuration file where the assembly was added.

Child Elements

None.

Parent Elements

Element Description

configuration

Specifies the required root element in every configuration file that is used by the common language runtime and the .NET Framework applications.

system.web

Specifies the root element for the ASP.NET configuration section.

compilation

Configures all compilation settings that ASP.NET uses to compile applications.

assemblies

Defines a collection of names of assemblies that are used during compilation of an ASP.NET application.

The remove element removes a reference to an inherited assembly name from the collection that is contained in the assemblies element.

The assemblies element defines a collection of names of assemblies that are used during compilation of an ASP.NET application.

The following code example demonstrates how to configure compilation settings for an application.

<configuration>
   <system.web>
      <compilation defaultLanguage="VB">
         <assemblies>
            <remove assembly="ADODB"/>
            <remove assembly="*"/>
         </assemblies>
      </compilation>
   </system.web>
</configuration>

Configuration section handler

CompilationSection

Configuration member

Remove

Configurable locations

Machine.config

Root-level Web.config

Application-level Web.config

Virtual or physical directory–level Web.config

Requirements

Microsoft Internet Information Services (IIS) version 5.0, 5.1, or 6.0

The .NET Framework version 1.0, 1.1, or 2.0

Microsoft Visual Studio 2003 or Visual Studio 2005

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.