473,672 Members | 2,650 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

multiple configuration files

Hello

Here is my question :

I have a vb.net appli (Dotnet 1.1).
I have a config file that contains personnal settings
(myApplication. exe.config)
I also have a another config file ( anotherSettings .config ) based in the
same structure of a normal configuration file. It contains global settings.

The goal for me, is to overload these 2 files in one file, and use it, in my
application.

Is there a simple way to do that?

Thanks!!!!!!!!! !
bye!
syl
Jul 21 '05 #1
2 1594

Try using the NIni open source library (http://nini.sourceforge.net/).
NIni include a merge operation.
I hope it could help.

Lionel.

"lobrys" <RE************ *@orange.com> a écrit dans le message de news:
uD************* *@TK2MSFTNGP14. phx.gbl...
Hello

Here is my question :

I have a vb.net appli (Dotnet 1.1).
I have a config file that contains personnal settings
(myApplication. exe.config)
I also have a another config file ( anotherSettings .config ) based in the
same structure of a normal configuration file. It contains global
settings.

The goal for me, is to overload these 2 files in one file, and use it, in
my application.

Is there a simple way to do that?

Thanks!!!!!!!!! !
bye!
syl

Jul 21 '05 #2
>I have a vb.net appli (Dotnet 1.1).
I have a config file that contains personnal settings
(myApplication .exe.config)
I also have a another config file ( anotherSettings .config ) based in the
same structure of a normal configuration file. It contains global settings.
The goal for me, is to overload these 2 files in one file, and use it, in my
application.
Is there a simple way to do that?


No, since the application config files are *NOT* intended to be used
for user-specific, personal settings - they're read-only, after all.
They should ONLY be used for app- / system-specific settings affecting
the app for all users.

Store your user settings elsewhere - in the registry, or in a XML file
in e.g. the user's "Isolated Storage" (search MSDN on those keyword to
find out more about it).

Marc
=============== =============== =============== =============== ====
Marc Scheuner May The Source Be With You!
Berne, Switzerland m.scheuner -at- inova.ch
Jul 21 '05 #3

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

Similar topics

0
1559
by: Fernando Nasser | last post by:
Multiple database services and multiple versions on Red Hat Linux systems The way it works is that we require a specific service script for each database service (that is listening on each port). Each of these services has a init script in /etc/init.d and a corresponding configuration file in /etc/sysconfig. We use the 'chkconfig' utility to decide if each of those services will be activated on boot or not (it manipulates links under...
11
5295
by: Mike | last post by:
Looking to find any information on how to properly configure multiple instances of DB2. This is on Win2k db2 ver 7.2. I am basically looking for information on how the multiple instance settings should configured to work, how memory is shared or not, etc. I can not seem to find any good links to this information. Thanks, Mike
6
9196
by: David Young | last post by:
Hello all, I'm quite new to C# (< 6 months) but really love it and is my language of choice ..... but I have one question I've not been able to find out ..... In C++ a #define label in one file can be referanced in other *.cpp files, however in C# if I have say #define SPEED it only refers to the class(es) in that *.cs file. Is there anyway to have one #define label work with multiple *.cs files?
6
539
by: mark | last post by:
I have an asp.net ecommerce web application on a remote web server. I'm using an Access database on the back end. I've notice a few strange things. When I mimic an multiple user environment by surfin it in multiple browsers simultaneously the site generates a generic runtime error after awhile. I'm thinking this has something to do with my access database and multiple connections. I'm using forms authentication with a login page. Is...
5
10514
by: BPearson | last post by:
Hello I would like to have several sites share a single web.config file. To accomplish this, I would point the root of these sites to the same folder. Is there any reason why I might not want to do this? (IIS 5 or 6 In case you're wondering why I would do this, we have many web sites on a single server, and there are groups of sites that need to share common configuration information. I'd like to ease some administration by having one...
4
2968
by: tshad | last post by:
Can I set up multiple pages in the same Location tag? I thought I saw somewhere that I could. I tried the following, but it doesn't work. *************************************************** <configuration> <system.web> <authorization> <deny users="?" /> </authorization> </system.web> <location path="default.aspx,addLogon.aspx,LogonForgot.aspx">
6
4987
by: James Radke | last post by:
Hello, I have a multithreaded windows NT service application (vb.net 2003) that I am working on (my first one), which reads a message queue and creates multiple threads to perform the processing for long running reports. When the processing is complete it uses crystal reports to load a template file, populate it, and then export it to a PDF. It works fine so far....
2
7636
by: Sam | last post by:
Hi All, I have a solution which consists of multiple projects and each of these projects has their own app.config file. The problem is that all of my projects in the solution pull keys from the app.config file from the main project (my start-up project). My question is can each project look for its keys in its own config file first? Is there something or settings that missing here? Would some one give me a hand? Regards,
0
1475
by: CNN_news | last post by:
I would like to run multiple instances of TYPO3 (a cms written in PHP) on a single server. You can run multiple websites in two methods: multisite or multiple instances. In multiple instance, each instance uses the same source files but has its own database and private file storage area.
1
8522
by: forrie | last post by:
We're running multiple vhosts in an apache-2.x configuration for which we would like to provide separate php.ini files (for different reasons). At the moment, we're unable to do this - the error I'm seeing is: Starting httpd: Syntax error on line 87 of /etc/httpd/conf/vhost.conf.admin: Only first PHPINIDir directive honored per configuration tree - subsequent ones ignored
0
8418
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8943
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8635
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8695
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7465
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6254
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5719
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4238
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2835
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.