Magazines, Books and Articles

Wednesday, February 6, 2008

Exploring the .NET Configuration Files

It is a headache trying to post code to Blogger. After trying for most of the evening, I gave up.

I have uploaded the article and the code to Mediafire, a free file hosting site. Download the pdf file here [http://www.mediafire.com/?66ek99twzj1] and the code here [http://www.mediafire.com/?70c0h5fddtp].

If you have difficulty downloading these, leave your mail address as a comment and I'll mail them to you.

The article explores:

- the classes that represent the structure of configuration files
- the configuration hierarchy and the Configuration class
- classes used to read from/ write to the configuration file
- how to create custom sections

The code explores the concepts discussed in the article.


Your comments and opinion on the article will be greatly appreciated.

3 comments:

Anonymous said...

Sir,I am eager to read related to configuration but i am unable to download it so it would be nice if you can mail me.
Thanks

Kinjal's World said...

A Beautiful article to read. It was in too much detail. Thanx for sharing it and hope that in future it continues with different different topics.

Anonymous said...

First of all thank you very much for this article. I read the article. It is explains the concept very well. I will be using this from now.

Reading and writing the application configurations is the requirement for almost all the applications which are customizable. With .Net's System.Configuration Microsoft has came up with a clear approach to achieve this.

The best thing I like about adding the custom configuration section is the ability to add more settings (adding country in your example) during application's execution. This is not possible in using application settings (settings.settings file in VS 2005).

I didn't felt the need to download the code as the article explains the code in very descriptive manner.

Expecting more such articles from you in future.

Thank you once again for throwing light towards this approach of extending the configurations.

Post a Comment