Explain about refactoring of web.config in ASP.NET 4.0 ?

The major configuration elements in ASP.NET 4.0 are moved to the machine.config file. Now, the applications are inheritting these settings.
The advantage of this setting is that, the web.config file in ASP.NET 4 applications to be empty or to specify only which version of the framework the application is targeting.
This can be seen clearly in the below example.

Example:

< ? xml version="1.0" ? >
< configuration >
< system.web >
< compilation targetFramework="4.0" / >
< / system.web >
< / configuration >

Leave a Reply

Your email address will not be published. Required fields are marked *

*
*