Hi,
How to read same config file from different application?
I have 4 application in VB.NET, all are using different app.config files.
NOW I need all to read only one config file, how can I do this.
Thanks in Adv.
Regards,
Mustaq 3 2550
Hi Mustaq,
I believe you want to share a set of settings among different applications.
One way would be to make use of the <appSettings> element file attribute so
that it would refer to a common file.
Check out the same here: http://msdn.microsoft.com/library/de...ngsElement.asp
--
HTH,
Rakesh Rajan
MVP, MCSD http://www.msmvps.com/rakeshrajan/
"Mustaq" wrote: Hi,
How to read same config file from different application?
I have 4 application in VB.NET, all are using different app.config files. NOW I need all to read only one config file, how can I do this.
Thanks in Adv.
Regards, Mustaq
Hi Rakesh,
Thanks for your support, What I need is how can I force my VB.NET exes to
read from one config file
Senario, I have 4 Applications
EXE
1. AA.exe
2. BB.exe
3. CC.exe
4. DD.exe
Its Config files are as follows
1. AA.exe.config
2. BB.exe.config
3. CC.exe.config
4. DD.exe.config
all exes are in same directory, so now I need only AA.exe.config to run
other exex as well. Inside parameters are same.
How can I force applications to read read only AA.exe.config file.
Regards,
Mustaq
"Rakesh Rajan" wrote: Hi Mustaq,
I believe you want to share a set of settings among different applications.
One way would be to make use of the <appSettings> element file attribute so that it would refer to a common file.
Check out the same here: http://msdn.microsoft.com/library/de...ngsElement.asp
-- HTH, Rakesh Rajan MVP, MCSD http://www.msmvps.com/rakeshrajan/ "Mustaq" wrote:
Hi,
How to read same config file from different application?
I have 4 application in VB.NET, all are using different app.config files. NOW I need all to read only one config file, how can I do this.
Thanks in Adv.
Regards, Mustaq
Hi Mustaq,
There are no built-in methods I know of to accomplish this. Together with:
1. AA.exe.config
2. BB.exe.config
3. CC.exe.config
4. DD.exe.config
, you will need a "common.config" (or any other name) where you would store
your common settings. In other words, the Bin folder will have 5 config files
:(
One way would be to read the settings xml file directly. For an example,
check out this sample: http://www.windowsforms.net/Applicat...=40&tabindex=9
--
HTH,
Rakesh Rajan
MVP, MCSD http://www.msmvps.com/rakeshrajan/
"Mustaq" wrote: Hi Rakesh,
Thanks for your support, What I need is how can I force my VB.NET exes to read from one config file
Senario, I have 4 Applications EXE 1. AA.exe 2. BB.exe 3. CC.exe 4. DD.exe
Its Config files are as follows 1. AA.exe.config 2. BB.exe.config 3. CC.exe.config 4. DD.exe.config
all exes are in same directory, so now I need only AA.exe.config to run other exex as well. Inside parameters are same.
How can I force applications to read read only AA.exe.config file.
Regards, Mustaq
"Rakesh Rajan" wrote:
Hi Mustaq,
I believe you want to share a set of settings among different applications.
One way would be to make use of the <appSettings> element file attribute so that it would refer to a common file.
Check out the same here: http://msdn.microsoft.com/library/de...ngsElement.asp
-- HTH, Rakesh Rajan MVP, MCSD http://www.msmvps.com/rakeshrajan/ "Mustaq" wrote:
Hi,
How to read same config file from different application?
I have 4 application in VB.NET, all are using different app.config files. NOW I need all to read only one config file, how can I do this.
Thanks in Adv.
Regards, Mustaq This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Programmer |
last post by:
Hi everyone
Well here is my problem
I hope you can help me
|
by: Joan Bos |
last post by:
Hi,
Is there somewhere on the Internet a description of what a .NET
application config file should contain?
For our application, I have to write passwords encrypted in a config
file. The...
|
by: Chris V |
last post by:
I'm having a problem deploying my ASP.NET application to a WIN2k server.
(IIS5 .NET 1.1)
When I try to access ConfigurationSettings.AppSettings("WhateverValue") I
get an "Object reference not...
|
by: George |
last post by:
Hi,
Is it possible to specify the location of a web.config file in an
ASP.NET application?
I have one ASP.NET application which is to be hosted on 2 web sites in the
same web server. I want...
|
by: Jeff Robichaud |
last post by:
Hello,
Since it is possible to put application settings in a file other than
web.config, I was wondering what is the best practice in doing so vs.
putting these settings directly in web.config....
|
by: brent |
last post by:
Currently our application is reading from the web.config, and retrieves a
section, "softwareRequirements". Because the section will begin to grow
dramatically, I'd like to place it in the SQL...
|
by: Mustaq |
last post by:
Hi,
How to read same config file from different application?
I have 4 application in VB.NET, all are using different app.config files.
NOW I need all to read only one config file, how can I do...
|
by: Sridhar |
last post by:
Hi,
I have created a project which contains classes to read the data from the
database. This project has an App.Config file which contains the
SqlConnection String. when this code is called from...
|
by: Khodr |
last post by:
Hello,
I am using VS.NET 2003 and vb. I build my application MyApp and it generates
MyApp.exe.config. So now MyApp.exe reads parameters from MyApp.exe.config.
Great and no problem!
I need to...
|
by: DolphinDB |
last post by:
Tired of spending countless mintues downsampling your data? Look no further!
In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
|
by: ryjfgjl |
last post by:
ExcelToDatabase: batch import excel into database automatically...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: Vimpel783 |
last post by:
Hello!
Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
|
by: PapaRatzi |
last post by:
Hello,
I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
|
by: Shællîpôpï 09 |
last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
|
by: Faith0G |
last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
| |