471,627 Members | 1,106 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,627 software developers and data experts.

2.0 ConfigurationManager vs. WebConfigurationManager

I'm starting out in .Net 2.0, try to take some concepts I developed in
1.1 with me.

I have a class library which is to be used in both Web and Windows
applications, and much to my dismay, I discovered there are two
different classes for reading the configuration file.

I've seen some suggestions that I can look at the process I'm running
under to determine which one to use, but that seems like a nasty hack.
Does anyone have any other ideas to ensure that my library can get its
settings regardless of what type of application it is running for? Has
MS said anything about this?

In a related question, the AppSettings property says that it reads its
settings from the 'default configuration section' for the application.
Is there a way to change which section is the default? I'd like to
use multiple sections to store settings so that during my installation
process i can just switch to the section that stores production
settings, for example.

Thanks
Andy

Jan 31 '06 #1
0 2576

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by Michael Debus | last post: by
1 post views Thread by shapper | last post: by
3 posts views Thread by Mark | last post: by
4 posts views Thread by Jim in Arizona | last post: by
4 posts views Thread by =?Utf-8?B?Um9nZXIgTWFydGlu?= | last post: by
1 post views Thread by XIAOLAOHU | last post: by
reply views Thread by leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.