Solved

Config file reader with enterprise library

Posted on 2010-11-30
1
443 Views
Last Modified: 2012-05-10
I am looking to implement an application for reading config file using enterprise library 5.0.Please let me know how to implement this
0
Comment
Question by:manishk1111
1 Comment
 
LVL 14

Accepted Solution

by:
existenz2 earned 500 total points
ID: 34246165
Why would you want to use Entlib for this?

By default .NET has support for putting the appsettings in a different config file. Have a look at this url: http://stackoverflow.com/questions/1799413/appsettings-on-a-different-config-file-not-being-updated

Web.config/App.config:
<appSettings configSource="Settings.config"/>

Open in new window


Config file:
<?xml version="1.0" encoding="utf-8" ?>
<appSettings>
<add key="Application1" value="MyApplication1" />
<add key="Setting1" value="MySetting" />
</appSettings>

Open in new window

0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Sometimes in DotNetNuke module development you want to swap controls within the same module definition.  In doing this DNN (somewhat annoyingly) swaps the Skin and Container definitions to the default admin selections.  To get around this you need t…
In .NET 2.0, Microsoft introduced the Web Site.  This was the default way to create a web Project in Visual Studio 2005.  In Visual Studio 2008, the Web Application has been restored as the default web Project in Visual Studio/.NET 3.x The Web Si…

808 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question