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

 Posted by Bharathi Cherukuri on 8/29/2012 | Category: ASP.NET Interview questions | Views: 1647 | Points: 40
Answer:

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 >


Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response