dcsimg
Login | Register   
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX

By submitting your information, you agree that devx.com may send you DevX offers via email, phone and text message, as well as email offers about other products and services that DevX believes may be of interest to you. DevX will process your information in accordance with the Quinstreet Privacy Policy.


Tip of the Day
Language: ASP.NET
Expertise: Advanced
Sep 1, 2009

WEBINAR:

On-Demand

Application Security Testing: An Integral Part of DevOps


Using the deployment Element's retail Attribute

The deployment element in machine.config defines settings used to support deployment. The retail attribute can be set only at the machine level, not at the application level:

<deployment retail="true|false" />

You use it in machine.config as follows:

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

The default value of the retail attribute is false. When you set the attribute to true, ASP.NET disables other configuration settings. Specifically, when retail is true, ASP.NET forces the debug flag in the web.config file to be false, disables page output tracing, and shows remote users a custom error page rather than the actual exception or error message.

Setting this switch to true is probably a best practice to follow in production to ensure that an application always runs with the best possible performance and doesn't leak security information in error messages.

Nagaraj Ramesh
 
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

Sitemap
×
We have made updates to our Privacy Policy to reflect the implementation of the General Data Protection Regulation.
Thanks for your registration, follow us on our social networks to keep up-to-date