473,398 Members | 2,393 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

settings.settings ??

Hi

How is the settings.settings supposed to be used???

If I add it to a class library, I get a app.config file with a
<applicationSettings> section, containing my settings. However if I include
this class library in a web-project, it seems like I have to copy this
<applicationSettings> settings into the web.config file of my web.config
file if I want to override some of the settings....
Now I have quite a number of Class libraries, each with it own different set
of settings, and I use these libraries in a number of projects, so I quite a
taks to make sure all <applicationSettings> sections are in all the right
places....

Isn't there a way to put all the settings into one file and then refer to
this file with something like:

<applicationSettings file="commom.config" />
or something similar???

TIA

Søren
Mar 31 '06 #1
2 2680
Absolutley, take a look at the following URL:
http://support.microsoft.com/kb/555396

As well the the Patterns and Pratices Enterprise Library provides a
configuration block that will allow you to accomplish this
(http://msdn.microsoft.com/practices/).

See the Configuration Application Block for more details:
http://msdn.microsoft.com/practices/...tml/config.asp

"Søren M. Olesen" wrote:
Hi

How is the settings.settings supposed to be used???

If I add it to a class library, I get a app.config file with a
<applicationSettings> section, containing my settings. However if I include
this class library in a web-project, it seems like I have to copy this
<applicationSettings> settings into the web.config file of my web.config
file if I want to override some of the settings....
Now I have quite a number of Class libraries, each with it own different set
of settings, and I use these libraries in a number of projects, so I quite a
taks to make sure all <applicationSettings> sections are in all the right
places....

Isn't there a way to put all the settings into one file and then refer to
this file with something like:

<applicationSettings file="commom.config" />
or something similar???

TIA

Søren

Apr 2 '06 #2
Thanks for your reply...however using the files="..." option seems to only
work for the <appSettings> section, not the <applicationSettings>...kind of
wierd though....

Regards,

Søren
"Steven" <St******@community.nospam> wrote in message
news:12**********************************@microsof t.com...
Absolutley, take a look at the following URL:
http://support.microsoft.com/kb/555396

As well the the Patterns and Pratices Enterprise Library provides a
configuration block that will allow you to accomplish this
(http://msdn.microsoft.com/practices/).

See the Configuration Application Block for more details:
http://msdn.microsoft.com/practices/...tml/config.asp

"Søren M. Olesen" wrote:
Hi

How is the settings.settings supposed to be used???

If I add it to a class library, I get a app.config file with a
<applicationSettings> section, containing my settings. However if I
include
this class library in a web-project, it seems like I have to copy this
<applicationSettings> settings into the web.config file of my web.config
file if I want to override some of the settings....
Now I have quite a number of Class libraries, each with it own different
set
of settings, and I use these libraries in a number of projects, so I
quite a
taks to make sure all <applicationSettings> sections are in all the right
places....

Isn't there a way to put all the settings into one file and then refer to
this file with something like:

<applicationSettings file="commom.config" />
or something similar???

TIA

Søren

Apr 3 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: GS | last post by:
Hi, There is reference about accessing settings file in VB.NET but nothing about C#. How do I read settings in application settings file with C#? Thanks, G
2
by: GS | last post by:
How do I use My.Settings equivalent in C#? Below is part of MSDN documentation about accessing settings file. I wrote C# console application using VS 2005 and .NET 2.0 and would like to use new...
10
by: Paul Cheetham | last post by:
Hi, I am developing an application that needs to store some machine-specific settings. The application is going to be published on the network in order to keep the clients on the latest version....
10
by: Chris Dunaway | last post by:
I have an .exe console project and a class library project as part of a solution. The .exe has an App.config file and I have used the Settings page to add some Application level settings. When...
2
by: MacKris | last post by:
Hi, I'm a chemist trying to use the python script GaussSum.py with gnuplot for creating dataplots, and need some help. Whenever I try to produce a plot from the GaussSum GUI I get the error sh:...
3
by: Jon Slaughter | last post by:
I wrote an app that needed to save settings such as colors, fonts, etc... after hours of trying to use ConfigurationManager and AppSettings along with a few other things I finally found that I...
5
by: Andy | last post by:
I need to write a VB.NET WinForms app. For this purpose I need to keep some settings of the application, like many other Windows applications do. The most obvious solution is to store settings in...
0
by: =?Utf-8?B?UmljayBHbG9z?= | last post by:
For some unknown reason (user error?), I cannot get a NameValueCollection to persist in the app.config file. Unlike other settings, I cannot get the String Collection Editor GUI to allow my to...
6
by: WT | last post by:
Hello, Using VS2005. I have an assembly library that can be called from a Web site asp.net application or from a winform application. From this library I need to retrieve a path using simply a...
5
by: Rainer Queck | last post by:
Hello NG, Is it possible to share the settings of an application with a class libreary? In my case I have a application and a set of different reports (home made) put into a class library. The...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.