473,401 Members | 2,146 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,401 software developers and data experts.

How can I use Ms Enterprise Configuration Application Block modify app.conifg

Now I was writing a windows form program which need be modified its config
file by program.
How can I do? Did anyone catch this problem.
Thank you.

--
**************
ÂäϼÓë¹ÂðÍÆë·É
ÇïË®¹²³¤Ììһɫ
**************
Nov 16 '05 #1
4 1155
VJ
Haven't tried this... though.. the App.config looks like a structured XML..
so you could use DataSets to read it.. not sure of update'ing.. give it a
short...

But as far I know the use of App.Config is read-only purposes ...

VJ

"qushui" <qu*********@asus.com.cn.discuss> wrote in message
news:%2***************@TK2MSFTNGP10.phx.gbl...
Now I was writing a windows form program which need be modified its config
file by program.
How can I do? Did anyone catch this problem.
Thank you.

--
**************
ÂäϼÓë¹ÂðÍÆë·É
ÇïË®¹²³¤Ììһɫ
**************

Nov 16 '05 #2
Check out my entries in my blog about the APp Config block:
http://olorinblog.blogspot.com/

the oldest of the two entries shows you what to do by hand,
the second entry shows you how to use the Console Configuration.

HTH,
F.O.R.

PS: short answer is:
open your app.config file with the configuration console, or open up
the files where you have your config settings by hand (first method is
more secure since you get the ConfigConsole to check for you that you
put meaningfull data).

Nov 16 '05 #3
I can't visit your blog
http://olorinblog.blogspot.com/
"Olorin" <fr*************@gmail.com> ????
news:11**********************@g14g2000cwa.googlegr oups.com...
Check out my entries in my blog about the APp Config block:
http://olorinblog.blogspot.com/

the oldest of the two entries shows you what to do by hand,
the second entry shows you how to use the Console Configuration.

HTH,
F.O.R.

PS: short answer is:
open your app.config file with the configuration console, or open up
the files where you have your config settings by hand (first method is
more secure since you get the ConfigConsole to check for you that you
put meaningfull data).

Nov 16 '05 #4
I can't visit your blog
http://olorinblog.blogspot.com/
Odd... seems to work from my end...
try again (might have been a temporary problem on the site hosting it),
and also, if you want, try the direct links to the entries about the
EntLib Config Block:
http://olorinblog.blogspot.com/2005/...-hard-way.html
and
http://olorinblog.blogspot.com/2005/...fessional.html

HTH,
F.O.R.

Nov 16 '05 #5

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

Similar topics

1
by: Mike Chamberlain | last post by:
Hi all. I'm trying to extend the Microsoft Enterprise Library Data Access Application Block (http://msdn.microsoft.com/library/en-us/dnpag2/html/daab.asp?frame=true) to work with a Borland...
1
by: Ollie Riches | last post by:
I am trying to use asynchronous logging using MSMQ and I have configured the properties as defined in the help (see below) I don't understand where the property 'MsmqPath' is in the app.config for...
2
by: bjhogan | last post by:
Hi, I have built an c# asp.net application on my laptop, it uses the Enterprise Library blocks - Data Access Application Block, Configuration Application Block. I now want to deploy my...
0
by: Benny Ng | last post by:
Hi,All, When i deploy Enterprise library with my application ,i used XCOPY to deploy it into my test server. But when application runs, shown some error related registry. (But actually I haven't...
1
by: Philip Wagenaar | last post by:
Hi, I used the microsoft configuration block to store settings for applications in the past and this worked fine. But now I have the following situation and I do not know how to solve this: I...
0
by: sean rogers | last post by:
hello im using the configuration block and have created the main config file for the application - the file that contains the paths to the other configuration sections i.e. - (my other...
3
by: bungle | last post by:
Hi, I have started using MS Enterprise Library for the data access layer and found it great. I have changed to coding on another machine though and didn't think it necessary to a full install of...
0
by: =?Utf-8?B?YW5rMmdv?= | last post by:
Hi, Thanks in advance for reading this. Not sure where to post this question, but I hope someone in here can help. Trying to write to Event Log in VS 2005 (.NET 2.0) using Enterprise Library...
0
by: =?Utf-8?B?UG9sbHkgQW5uYQ==?= | last post by:
Hi, I have previously used EL v 3.1 Exception Handling application block successfully. I thought I would now try to do the same with EL v 4.0. My first experiment was to replace an exception....
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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.