Solved

Config file reader with enterprise library

Posted on 2010-11-30
1
440 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
Comment Utility
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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

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…
Here I am going to explain creating proxies at runtime for WCF Service. So basically we use to generate proxies using Add Service Reference and then giving the Url of the WCF service then generate proxy files at client side. Ok, what if something ge…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

772 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now