473,387 Members | 1,582 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,387 software developers and data experts.

reading and writing to app.config file

Hello Everyone,

I am trying to create an application that can read the app.config file of
another application and can makes changes to the app.config file.

so for example if I want to change the connection string of that app.config
that resides in another application, I can easily do so.

Is there any fast way that .net 2.0 provides to accomplish this or someone
has any sample code to do this.

Any help will be apprecaited.

Thanks
Nov 1 '07 #1
2 5618
Hello Vinki,
Hello Everyone,

I am trying to create an application that can read the app.config
file of another application and can makes changes to the app.config
file.

so for example if I want to change the connection string of that
app.config that resides in another application, I can easily do so.

Is there any fast way that .net 2.0 provides to accomplish this or
someone has any sample code to do this.

Any help will be apprecaited.

Thanks
You could try to extend the EntLib 3.0 configuration exitor. That way you're
already at 90% :)
--
Jesse Houwing
jesse.houwing at sogeti.nl
Nov 1 '07 #2
Viki,
Here you go
http://www.codeproject.com/csharp/Sy...figuration.asp

Cheers,
Husam Al-A'araj
www.aaraj.net

"Vinki" wrote:
Hello Everyone,

I am trying to create an application that can read the app.config file of
another application and can makes changes to the app.config file.

so for example if I want to change the connection string of that app.config
that resides in another application, I can easily do so.

Is there any fast way that .net 2.0 provides to accomplish this or someone
has any sample code to do this.

Any help will be apprecaited.

Thanks
Nov 2 '07 #3

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

Similar topics

2
by: Dot Kom | last post by:
I've got this text file full of lines like: A*1King Richard Dale*3Welton Orchard Rd*4Petersburg*5257-1234Î the columns are defined by the *#, so that line would break apart like: A*1King...
1
by: s99999999s2003 | last post by:
hi i used ConfigParser to read a config file. I need the config file to have identical sections. ie : blah = "some server" blah = "some destination" end= ''
2
by: MK | last post by:
Is there any way to write into the app config at runtime? I want to store position, height and width of my forms.
1
by: Ray Stevens | last post by:
I have a dotnet wrapper service running on a service that calls one of our custome components. I would like to read the appsettings section from a config file, but because this is a class file...
16
by: Timm | last post by:
I'm trying to use ASP objects (basically formed and populated based on Web.Config settings) and I want to use them in a different non-asp program with minimal reprogramming. So, my question is how...
1
by: Corey Ellsworth | last post by:
Does anybody know how to read/write extended file properties such as comments, keywords, author, etc. in VB.NET? I can't find anything anywhere. It may be because I don't know where to start or...
2
by: SAL | last post by:
Below is similar code that I am have and the line "myDataConnect mydata = new myDataConnect(ConfigurationSettings.AppSettings);" is what I am having trouble with. The syntax is correct and I get...
0
by: kewldudehere | last post by:
string filepath=""; if( args.ToUpper() == "TST" && args.ToUpper() == "ATS") filepath=ConfigurationSettings.AppSettings; ////////////////// i have this tag in the config file.. <add...
2
by: vishalgupta | last post by:
i need to read/write to a text/binary file without using any header file in c. i cant use the FILE strucutire as it is defined in stdio.h nor can i use file input/output functions as they are...
1
by: neeraj | last post by:
Hi all I have developed desktop application in c#.net. I have installed it on 15 to 20 computers which all are in network. Application having some setting in app.config file. My problem it...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
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...

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.