Jan Schreuder on .Net

.Net code samples, experiences, observations

View my professional profile on LinkedIn

Recent Posts

Tags

News

  • Inappropriate comments will be deleted at my discretion.

    The information and code samples in this weblog is provided "AS IS" without warranty of any kind, either expressed or implied, including but not limited to the merchantability and/or fitness for a particular purpose.

Community

Email Notifications

Tool suppliers

Tools

General

Microsoft

Favorite blogs

Archives

What problems does leaving debug=true cause

Every ASP.Net developer knows about this setting, or at least should. But what happens when you forget about this setting and simply install your web application in a production environment.

At Tess's MSDN blog, you will find an article explaining why you should set Debug=False on production servers. There's also a link to Scott Guthrie's weblog which describes the same subject. Both mention the deployment retail setting, which is new in ASP.Net 2.0. It will tell IIS to ignore the Debug=true setting for production servers, simply by placing the following in the machine.config:

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

Using this setting, IIS will simply ignore the debug= setting. So you will you never forget to change it when you move your new web application to the production server. 

Leave a Comment

(required) 

(required) 

(optional)

(required) 


Please add 8 and 6 and type the answer here: