asp.net.ph

Skip Navigation Links

<deployment> Section

ASP.NET Syntax   ASP.NET Configuration Sections


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

<deployment
   retail = "true | false"
/>

Attributes and Elements

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.

Default value is false.


Child Elements

None.

Parent Elements


Element Description
configuration The required root element in every configuration file used by the common language runtime and .NET Framework applications.
system.web Specifies the root element for the ASP.NET configuration settings in a configuration file. Contains configuration elements that configure ASP.NET Web applications and control how the applications behave.

Remarks

When retail is set to true, ASP.NET will disable 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 or in the root Web.config file, but is the default configuration returned by application in the .NET Framework version 2.0.

<deployment retail = "false" />

Example

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

<system.web>
   <deployment retail = "false" />
</system.web>
See Also

ASP.NET Configuration   DeploymentSection Class



© 2025 Reynald Nuñez and asp.net.ph. All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note