DeploymentSection.Retail Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets a value that specifies whether Web applications on the computer are deployed in retail
mode.
public:
property bool Retail { bool get(); void set(bool value); };
[System.Configuration.ConfigurationProperty("retail", DefaultValue=false)]
public bool Retail { get; set; }
[<System.Configuration.ConfigurationProperty("retail", DefaultValue=false)>]
member this.Retail : bool with get, set
Public Property Retail As Boolean
Property Value
true
if Web applications are deployed in retail
mode; otherwise, false
. The default is false
.
- Attributes
Examples
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>
Remarks
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.
Note
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.
Applies to
Váš názor
https://aka.ms/ContentUserFeedback.
Připravujeme: V průběhu roku 2024 budeme postupně vyřazovat problémy z GitHub coby mechanismus zpětné vazby pro obsah a nahrazovat ho novým systémem zpětné vazby. Další informace naleznete v tématu:Odeslat a zobrazit názory pro