Click to Rate and Give Feedback
Collapse All/Expand All Collapse All
This page is specific to
Microsoft Visual Studio 2008/.NET Framework 3.5

Other versions are also available for the following:
.NET Framework General Reference
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 retail is set to true, ASP.NET disables certain configuration settings such as trace output, custom errors, and debug capabilities.

Default Configuration

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.

<system.web>
  <deployment retail="false" />
</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

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
This does not turn off Custom Errors.      Max Schmeling   |   Edit   |   Show History

I just verified that this documentation is incorrect when it says "When retail is set to true, ASP.NET disables certain configuration settings such as trace output, custom errors, and debug capabilities. "

Setting retail to true *forces* it to show the custom error pages no matter what the custom errors mode is set to in the web.config. Exactly opposite of what the documentation says.

I can only assume that what it means is that it disables your settings and uses its own, but it's not very clear. Everyone that reads it, reads it as "it disables custom errors". And then they dismiss the idea of using it because who wants to disable custom errors?

Processing
© 2010 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks | Privacy Statement
Page view tracker