473,473 Members | 2,027 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Share configurable application settings between projects in a vsnet solution

I have a vs2005 solution containing about 5 projects, three of which
have their own .settings files.

When I deploy the application, I want all the settings to be in one
place - configurable - presumably in an app.config file where I can
edit them. The settings will be used by a windows service,
filewatcher, database access application.

How do I achieve this?

As a workaround, I have created an additional project which contains a
single static class with static property accessors pointing to values
from an internal settings file.
I've consolidated all the settings information from the other projects
into that one project. I then referenced that project from all the
others and used it's settings via the static class properties.

Does that sound like the right approach?

I just had the idea that I might be missing something. I've downloaded
the Configuration Application Block and am investigating that,
thinking that it might help me. As usual, there's bucketloads of
general information on the application block, but nothing succinct, so
I'm going to have to do the hard yards until I find something
pertinent.

Any advice would be much appreciated.

Jun 7 '07 #1
3 2566

I just had the idea that I might be missing something. I've downloaded
the Configuration Application Block and am investigating that,
thinking that it might help me. As usual, there's bucketloads of
general information on the application block, but nothing succinct, so
I'm going to have to do the hard yards until I find something
pertinent.
That's where you need to go. Why re-invent the wheel? It has it all with
examples and everything about working with App.config in just the download
for .Net 2.0. All you have to do is reference the App Block Dll(s) which are
part of VS 2005 and the .NET 2.0 Framework, or with VS 2003 and with .Net
1.1 Framework, you have to download and install CAB and add reference to the
right Dll(s) in your project.

Jun 7 '07 #2
Unfortunately it looks like there's no Configuration Application Block
in the latest offering of the Enterprise Library.
Back to the drawing board.

Jun 7 '07 #3

"Meteor" <tb******@hotmail.comwrote in message
news:11*********************@i13g2000prf.googlegro ups.com...
Unfortunately it looks like there's no Configuration Application Block
in the latest offering of the Enterprise Library.
Back to the drawing board.
Yes, there is no Enterprise Library for Framework 2.0. All of it has been
moved to the System.Configuration namespace.

http://www.dotnetfun.com/articles/fr...onManager.aspx

Every last bit as far as Configuration Application Block, is in
ConfigurationManager. I have used the Configuration Application Block
Enterprise solutions on Framework 1.1 and the ConfigurationManager on
Framework 2.0. They are the same solutions.

All you're going to get on the download for Config App Block for Framework
2.0 are documentation, examples and demos for VB and C#.NET on how to use
ConfigurationManager.

Jun 7 '07 #4

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

Similar topics

3
by: AARON PECORARO | last post by:
I need to split apart my web application into multiple projects to allow it to be distributed in parts, but all of the projects need to work together (ie. they need to share session information)....
2
by: TaeHo Yoo | last post by:
Hi all, I have a solution which contains multiple projects. Those multiple projects should share the same session. For example, users login, create the session for users then these session...
1
by: Macca | last post by:
Hi, I have a C# Solution/Application that contain 4 projects. Each of these projects needs at some time to access the same database. I would like to know how to share a single connection...
9
by: Andrew Shitov | last post by:
I have to copy files from one network share folder to another (both are on different remote machines). Server running this asp.net appllication is not configurable (except web.config), while...
4
by: Fred Nelson | last post by:
Hi: I have a VB.NET web application that has been running just fine for several months without any cascading style sheets. Suddenly several users have had problems with the layout of the...
0
by: 1Cajun | last post by:
I would like to share settings between two projects in the same solution. How do i do this?
15
by: Neo | last post by:
Hello All, I found that ASP.net website only accepts code withing site directory. This creates big hurdle in shairng code. How to share code between two websites, like the way share between two...
0
by: =?Utf-8?B?U2ltb25EZXY=?= | last post by:
Hi All I would like to install the same Windows Service project on the same server under different names, one for each customer. I have been able to do it but I would like an expert opinion as...
3
by: Meteor | last post by:
I have a vs2005 solution containing about 5 projects, three of which have their own .settings files. When I deploy the application, I want all the settings to be in one place - configurable -...
2
by: mfuribondo | last post by:
I have a solution with three projects in it. Two are windows forms applications and the third is a class library. I am trying to deploy the projects which use a single database located in one of...
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
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...
1
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...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.