Friday, June 27, 2008

ASP.NET Deployment true

ASP.NET 2.0 comes with a new setting (< deployment retail = "true" />) in machine.config which disables debugging, tracing and error messages.

Tracing as well as error messages should not visible to the end user due to security reasons, so its always recommended to turn custom errors and tracing off in web.config.

Sometimes it is not possible to check all the web.config in an application individually and verify whether compilaion debug is true or false (< compilation debug=”true”/ >) in web.config, moreover its tedious process. To get rid of this pain, ASP.NET 2.0 has <deployment> section in machine.config file.

Turn this switch on

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

it will disable the < compilation debug=”true”/> of web.config file.

In fact < deployment retail=”true”/ > overrides < compilation debug=”true”/ >.

Refer : for more information

1 comment:

digital signature said...

ASP.Net is a language which is in demand. ASP.Net is my programming language. In new setting of .Net deployment is set as true. I want to know what the use of doing this is. How it affects the application. Thanks for this information.

Site Meter