Brendan Tompkins [MVP]

Sponsors

The Lounge

News

Advertisement

Images in this post missing? We recently lost them in a site migration. We're working to restore these as you read this. Should you need an image in an emergency, please contact us at imagehelp@codebetter.com
How To .config the Right Way...

From IanG: Why Writing Into .NET Application Configuration Files Is a Bad Idea. This is good information, especially the section “Where Should I Put This Information Then?” 

I often think that .config files can be improved upon as well.  I've batted around the idea of creating a “configuration service” that could be accessed by a bunch of different apps that need common configuration information.  I think if something like this were designed the right way, it could be really useful. All an application would need to do would be to identify itself, and the config service could provide common or custom configuration information.  Perhaps someday I'll find some time to work on this.

-Brendan


Posted 11-26-2004 7:31 AM by Brendan Tompkins

[Advertisement]

Comments

Anon wrote re: How To .config the Right Way...
on 11-26-2004 3:56 AM
How would you get the app to provide valid credentials? You wouldn't want to give config info out willy nilly and if you have to store credentials you have the same problem :(
Brendan Tompkins wrote re: How To .config the Right Way...
on 11-26-2004 6:22 AM
Not sure if I understand the issue fully, but could use a webservice with WSE security, and you could store credentials however you're storing the rest of your config, right?
Grant wrote re: How To .config the Right Way...
on 11-30-2004 12:10 AM
Maybe we could work on a hierearchical database containing keys and values, sort of a master hash table, and then . . . no wait, they tried that already and it's called the Registry. 'Nuff said.

Jon Galloway breaks down config file pros and cons here: http://weblogs.asp.net/jgalloway/archive/0001/01/01/129941.aspx

I'm a big fan of "integrated security=SSPI", but I'd still like to find something a bit more comfortable.

Add a Comment

(required)  
(optional)
(required)  
Remember Me?