Expand Minimize

deployment Element (ASP.NET Settings Schema)

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

configuration Element (General Settings Schema)
  system.web Element (ASP.NET Settings Schema)
    deployment Element (ASP.NET Settings Schema)
<deployment retail="true|false" />

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

Attributes

Attribute

Description

retail

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

None.

Parent Elements

Element

Description

configuration

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

system.web

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 the retail attribute is true, ASP.NET disables trace output, disables debug capabilities, and disables detailed system-generated error messages for remote users. For applications that have a customErrors element in the application Web.config file, the mode attribute is forced to On. These settings override any settings that are made in application Web.config files.

NoteNote:

When you use the retail setting, you should continue to set the debug attribute to false in application Web.config files that are deployed to the server. The debug setting disables request execution timeout, and this is not overridden by the retail setting. For more information, see. Most Common ASP.NET Support issues - Reporting from deep inside Microsoft Developer Support on Scott Hanselman's blog.

Default Configuration

The following default <deployment> element is not explicitly configured in the machine configuration file, but is the default configuration.

<deployment retail="false" />

The following configuration file example shows how to set this property to true in the machine.config file. The machine.config file is located in this folder:

%windir%\Microsoft.NET\Framework\<frameworkversion>\Config

<system.web>
  <deployment retail="true" />
</system.web>

Configuration Section Handler

System.Web.Configuration.DeploymentSection

Configuration Member

SystemWebSectionGroup.Deployment

Configurable Locations

Machine.config

Requirements

IIS 6.0

.NET Framework 2.0

Visual Studio 2005

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft