I found an article at http://blog.hishambaz.com/archive/2005/01/30/197.aspx to manage your application settings using EntLib. Here is my short version.
1. Create a new solution and a project with the name WebCrawler.Configuration and open the Web.config with the Enterprise Library Configuration Tool. Add a Configuration Application Block en name it as webCrawlerConfiguration.
.JPG)
2. Create a config file named WebCrawler.config and add this to the solution.

In the WebCrawler.config write the following code:
<?xml version="1.0" encoding="utf-8"?>
<webCrawlerConfiguration>
<xmlSerializerSection type="WebCrawler.Configuration.WebCrawlerSettings,WebCrawler.Configuration">
<WebCrawlerSettings xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<timeout>30</timeout>
<Retries>5</Retries>
<Proxy>myproxy:8080</Proxy>
</WebCrawlerSettings>
</xmlSerializerSection>
</webCrawlerConfiguration>
3. Add a class file named WebCrawlerSettings.cs.
Add a class file named WebCrawlerSettings.cs.
In the WebCrawlerSettings.cs write the following code:
namespace WebCrawler.Configuration
{
public class WebCrawlerSettings
{
public static string SectionName = "webCrawlerConfiguration";
private int _timeout;
private int _retries;
private string _proxy;
public WebCrawlerSettings(){}
public int Timeout
{
get { return _timeout; }
set { _timeout = value; }
}
public int Retries
{
get { return _retries; }
set { _retries = value; }
}
public string Proxy
{
get { return _proxy; }
set { _proxy = value; }
}
}
}
4. In the WebForm1.cs write the following code:
using System;
using System.Diagnostics;
using Microsoft.Practices.EnterpriseLibrary.Configuration;
namespace WebCrawler.Configuration
{
public class WebForm1 : System.Web.UI.Page
{
private void Page_Load(object sender, System.EventArgs e)
{
WebCrawlerSettings settings = (WebCrawlerSettings)ConfigurationManager.GetConfiguration("webCrawlerConfiguration");
Debug.WriteLine(settings.Timeout);
Debug.WriteLine(settings.Retries);
Debug.WriteLine(settings.Proxy);
}
}
}