Clean web.configs for .Net 4.0

Posted: June 30, 2011 in .Net4.0

Recently I wanted to create a web sample & happened to open an EmptyWebsite from vs2010.What I could notice is,web.config looks very simple with few lines of code as below.

I was surprised & was eager to read about this.Reason behind this is that .NET 4 includes a new version of the CLR and a new .NET 4 specific machine.config file.Hence the config settings have been moved down to the machine config file.This machine.config file now automatically registers all of the ASP.NET tag sections, handlers, modules and settings for the following:

ASP.NET Dynamic Data
ASP.NET Routing
ASP.NET Chart Control

 This change for ASP.NET 4.0 config files is to reduce the web.config file size,making things less complicated and easier to read.Cool right 🙂 N-joy!

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s