This documentation is archived and is not being maintained.

deployment Element (ASP.NET Settings Schema) 

Defines configuration settings that are used to support the deployment of a Web application.

<deployment retail="true|false" />

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


Attribute Description


Optional Boolean attribute.

Sets a value specifying whether a Web application is deployed in retail mode.

The default value is false.

This value can only be set at the machine level, not at the application level.

Child Elements


Parent Elements

Element Description


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


Specifies the root element for the ASP.NET configuration settings in a configuration file. Contains elements that configure ASP.NET Web applications and control how the applications behave.

When retail is set to true, ASP.NET disables certain configuration settings such as trace output, custom errors, and debug capabilities.

The following default <deployment> element is not explicitly configured in the machine configuration file, but is the default configuration returned by an application in the .NET Framework version 2.0.

<deployment retail="false" />

The following example shows how to declaratively specify values for several properties of the DeploymentSection class.

  <deployment retail="false" />

Configuration Section Handler


Configuration Member


Configurable Locations



IIS 6.0

.NET Framework 2.0

Visual Studio 2005