Export (0) Print
Expand All

DeploymentSection.Retail Property

Gets or sets a value that specifies whether Web applications on the computer are deployed in retail mode.

Namespace:  System.Web.Configuration
Assembly:  System.Web (in System.Web.dll)

'Declaration
<ConfigurationPropertyAttribute("retail", DefaultValue := False)> _
Public Property Retail As Boolean

Property Value

Type: System.Boolean
true if Web applications are deployed in retail mode; otherwise, false. The default is false.

When Retail 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.

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>

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Show:
© 2014 Microsoft