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

Problem wiyh Application Configuration

Hello to everybody.I have a problem.I'm using an
application configuration file to store particular
settings.I use a custom Section Handler to read settings
and everything work fine if I read my settings.If I add
some settings to the file and I read the configuration
file again I can see only the previous setting.To read
the setting added I must exit from the application and
run it again.Anyone know why it happens?I've read that
configuration file are read from the CLR when running the
application.Is this the problem,so any modify can't be
read at run time?Thank you
Nov 15 '05 #1
1 1308
Hi Mevar,

I think that that is the it works, I haven't check the code with ildasm but
I think that ConfigurationSettings class has a private static constructor
that read the config file before its used, and after that is not readed
again.

If you want to be able to monitoring a config file you will have to
implement it by your own ( I do that , so if you need some code let me
know ) basically all you need is a FileSystemWatcher to your config file and
a class to read and parse the XML file.

Hope this help,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation

"Mevar" <to*****@hotmail.com> wrote in message
news:05****************************@phx.gbl...
Hello to everybody.I have a problem.I'm using an
application configuration file to store particular
settings.I use a custom Section Handler to read settings
and everything work fine if I read my settings.If I add
some settings to the file and I read the configuration
file again I can see only the previous setting.To read
the setting added I must exit from the application and
run it again.Anyone know why it happens?I've read that
configuration file are read from the CLR when running the
application.Is this the problem,so any modify can't be
read at run time?Thank you

Nov 15 '05 #2

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

Similar topics

2
by: gilberto ramirez | last post by:
I want to create an ASP application in the following way: PC1 - Windows XP (SP1) with VS .NET (and everything needed) - im programming with C# .NET SRV1 - ISA SERVER - Windows 2000 (SP3) SRV2...
3
by: Kris van der Mast | last post by:
Hi, I've created a little site for my sports club. In the root folder there are pages that are viewable by every anonymous user but at a certain subfolder my administration pages should be...
15
by: Ron L | last post by:
We are working on a distributed VB.Net application which will access a SQL database located on a known server. Each client will run on the user's local machine. To implement this, we are trying...
1
by: Nathan Sokalski | last post by:
I have retrieved data from a database using a SELECT statement that includes an INNER JOIN. The data seems to be retrieved to the DataSet OK, but I am having trouble getting the data from the...
0
by: Carlos | last post by:
I have my Webservice running ok in my local machine but when I try to write same simple service in the webservice I get this I made the changes in the Web.Config that the message suggest and I...
6
by: BookerW | last post by:
Ok interesting, on my local machine And i did not do a good job of keeping track of the exact order.... but on my local machine in which i have vis studio 2003 installed and IIS for win XP,...
0
by: aj123 | last post by:
Hello; I develop website and uploaded to host provider and works fine but I uploaded it to ther hosting provider and it not working and give this problem ----- Runtime Error Description: An...
6
by: khanpmd | last post by:
Hi , I have a doubt in ASP.Net hosting.I have developed a site and hosted it. when i browse that site an error occured like this.I dont know why this error is showing? Because i have no problem...
3
by: =?Utf-8?B?YzY3NjIyOA==?= | last post by:
Hi all, I cut and paste the following code from msdn help page which it just introduces view and multiview server controls. Here is what I do: in vs studio 2005, File --New Web Site, it...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
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.