views:

200

answers:

2

Heres something I've been pondering for a while ...

Do you struggle with the size and the number of entries in the web.config file? Do you understand every element?

Is it time for Microsoft to relook at how an ASP.NET site is configured, perhaps by splitting the web.config file into multiple files?

+14  A: 

They did.

In ASP.Net 4.0, all of the standard Web.config entries for ASP.Net AJAX sites are in Machine.config, allowing new Web projects to start with an (almost) empty Web.config.

In addition, VS2010 allows you to combine multiple web.config files during a build.

SLaks
+1 the minimal web config is around 6 lines in .Net 4
Nick Craver
That is really good news!
James Westgate
+6  A: 

Man I HATE the web.config file - it's a complete mess. As the previous answerer mentioned, this has been trimmed and tidied up in ASP.NET 4.

However, for those of us stuck with earlier tech (e.g. ASP.NET3.5, VS2008 etc.), you can still split it up into multiple files to make it more manageable by using the configSource attribute.

See this article

UpTheCreek