Introduce DataBase,Asp.net,JavaScript,Xml,Html,Css,Sql,Php,ASP.NET Controls,AJAX,Tools,HTML,CSS,JavaScript,Open Source Project,WPF,.Net Framework,Linq
Top Recommended Hosting

Centralized Configuration.

by the3factory 4/15/2008 5:05:00 PM
Question:

I would like to implement a central configuration for use in a webfarm.

I could write my own code, but first I wanted to make sure there wasn't and code out there allready.

Instead of maybe there is something like SqlConfigurationManager.

I'm want use the existing configuration classes like configuration section.

Maybe I can store some xml in the table, and load the xml into a ConfigurationSection myself?


Answer1:

The simplest way would be to use the configSource attribute of the existing configuration elements:

<connectionStrings configSource="Config\connectionStrings.config" />

Then, just have the Config folder in each app be a virtual folder from a common location that your entire farm can see.


Answer2:

That would be a great idea, but there is one problem.

I have SectionGroups, and configSource is not supported in that case. I think it is a bug.


Related posts

Sign up for PayPal and start accepting credit card payments instantly.


Powered by BlogEngine.NET 1.2.0.0