What Has Happened To The Web.Config?

I'm working on a web project that will utilize the Microsoft AJAX Library and asked myself, "What has happened to the web.config file?" I mean, back in ASP.NET 1.0, I was lucky if my web.config file was 20 lines long. Now, I'm finding myself commenting the web.config file to remember why I added, changed, commented, or removed items. How pathetic is that! <g>
Published Friday, December 29, 2006 4:02 PM by Jason N. Gaylord

Comments

# re: What Has Happened To The Web.Config?

Friday, December 29, 2006 5:13 PM by ScottGu

With more features comes more options to tweak them... ;-)

One thing you might want to look into doing if you find the web.config file getting too big is to split it up into separate files.  That way you could have an authorization.config for authorization rules, authentication.config for authentication settings, etc.  You can then just use web.config to pull them all together.  This is a new feature that is enabled for all config sections with asp.net 2.

Hope this helps,

Scott

# re: What Has Happened To The Web.Config?

Friday, December 29, 2006 11:45 PM by Marc Brooks

And if you have a bunch of settings that are standardized across all applications on a single machine, you can put all that stuff in the %WinDir%\Microsoft.Net\Framework\v2.0.50727\Config\Web.Config file and all ASP.Net 2.0 applications will automatically inherit those settings.

# re: What Has Happened To The Web.Config?

Saturday, December 30, 2006 9:18 AM by dK

In addition, when working in a big company where production servers aren't part of your responsabilities, does big and well commented web.config files can save your life.

# re: What Has Happened To The Web.Config?

Saturday, December 30, 2006 10:07 AM by Dody Gunawinata

"You can then just use web.config to pull them all together.  "

How do you do this ?

# re: What Has Happened To The Web.Config?

Saturday, December 30, 2006 11:46 AM by ScottGu

Scott Allen has a good article on using the new ASP.NET 2.0 configuration features here: http://odetocode.com/Articles/418.aspx

One of the features he highlights in the "configSource" attribute - which allows you to split a web.config file into multiple separate files.

Hope this helps,

Scott

# re: What Has Happened To The Web.Config?

Wednesday, January 24, 2007 10:47 AM by Jason N. Gaylord

Your right on Scott. That's what you have to do anymore. :-) Great work on the features by the way. Your team does an excellent job!

# re: What Has Happened To The Web.Config?

Thursday, June 07, 2007 4:07 PM by Mike

It there a way to stop config.Save() from removing

<!-- Comments --> from my config file?

# re: What Has Happened To The Web.Config?

Thursday, November 15, 2007 3:48 PM by Deborah

I have the same question as Mike ... how do you get config.Save to retain existing comments and save any new comments?

# what has happened in august

Monday, May 12, 2008 9:32 PM by what has happened in august

Pingback from  what has happened in august

# re: What Has Happened To The Web.Config?

Friday, November 28, 2008 10:51 AM by Olgunka-ow

<a href= http://fasster.angelfire.com >baltimore and convention center and headquarters</a> <a href= http://gertui.angelfire.com >nasdaq 100 tennis tournament</a>

# re: What Has Happened To The Web.Config?

Wednesday, December 03, 2008 12:28 AM by Asina

<a href= bestpre.com ></a>

# re: What Has Happened To The Web.Config?

Saturday, December 06, 2008 8:11 AM by Semil

<a href= spiritez.com ></a>

# re: What Has Happened To The Web.Config?

Friday, December 26, 2008 11:32 AM by fabiola-ed

<a href= membres.lycos.fr/dertull >zx10r graphics</a>

# re: What Has Happened To The Web.Config?

Sunday, March 01, 2009 1:04 AM by balabo3_az

<a href= http://adultchatsfinder.com >dating</a>

# re: What Has Happened To The Web.Config?

Sunday, March 01, 2009 2:16 AM by fabiola-ju

<a href= adultspeeddatingfinder.com >dating</a>

Leave a Comment

(required) 
(required) 
(optional)
(required)