473,796 Members | 2,712 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to set application dependency on custom configuration files?

Hello, everybody,
In order to avoid making web.config lengthy, I just moved some custom
configuration settings out from web.config, and centralized them into an xml
file, which names data.config. It works fine except for one thing that the
custom configuration file has a poor change awareness. Custom configuration
settings can not be refreshed after the data.config file was modified.
I wish the custom data.config file can works like the web.config file, which
will lead the whole web application to be reloaded once it was
changed/modified. How to achieve that? I really need your help! Thanks!
Apr 10 '06 #1
3 1595
Laser Lu wrote:
Hello, everybody,
In order to avoid making web.config lengthy, I just moved some custom
configuration settings out from web.config, and centralized them into an xml
file, which names data.config. It works fine except for one thing that the
custom configuration file has a poor change awareness. Custom configuration
settings can not be refreshed after the data.config file was modified.
I wish the custom data.config file can works like the web.config file, which
will lead the whole web application to be reloaded once it was
changed/modified. How to achieve that? I really need your help! Thanks!


how are you using data.xml? by using the file attribute on the
appSettings element?

<appSettings file="data.xml" >
</appSettings>

--
Craig
Microsoft MVP - ASP/ASP.NET
Apr 10 '06 #2
No, I'm not using the file attribute of appSettings element.
Indeed, I implemented my own code to parse the custom settings from the
external data.xml file. The custom settings in that file is structured more
complex than being a simple name-value dictionary, so I can not use the
legacy NameValueSectio nHandler like the appSettings section does:(

"Craig Deelsnyder" <cdeelsny@NO_SP AM_4_MEyahoo.co m> wrote in message
news:ea******** ******@TK2MSFTN GP03.phx.gbl...
Laser Lu wrote:
Hello, everybody,
In order to avoid making web.config lengthy, I just moved some custom
configuration settings out from web.config, and centralized them into an
xml file, which names data.config. It works fine except for one thing
that the custom configuration file has a poor change awareness. Custom
configuration settings can not be refreshed after the data.config file
was modified.
I wish the custom data.config file can works like the web.config file,
which will lead the whole web application to be reloaded once it was
changed/modified. How to achieve that? I really need your help! Thanks!


how are you using data.xml? by using the file attribute on the
appSettings element?

<appSettings file="data.xml" >
</appSettings>

--
Craig
Microsoft MVP - ASP/ASP.NET

Apr 10 '06 #3
I was really stuck, and is now seeking for help!
Any helps will be appreciated! Thanks in advance!

"Laser Lu" <la******@hotma il.com> wrote in message
news:%2******** ********@TK2MSF TNGP03.phx.gbl. ..
No, I'm not using the file attribute of appSettings element.
Indeed, I implemented my own code to parse the custom settings from the
external data.xml file. The custom settings in that file is structured
more complex than being a simple name-value dictionary, so I can not use
the legacy NameValueSectio nHandler like the appSettings section does:(

"Craig Deelsnyder" <cdeelsny@NO_SP AM_4_MEyahoo.co m> wrote in message
news:ea******** ******@TK2MSFTN GP03.phx.gbl...
Laser Lu wrote:
Hello, everybody,
In order to avoid making web.config lengthy, I just moved some custom
configuration settings out from web.config, and centralized them into an
xml file, which names data.config. It works fine except for one thing
that the custom configuration file has a poor change awareness. Custom
configuration settings can not be refreshed after the data.config file
was modified.
I wish the custom data.config file can works like the web.config file,
which will lead the whole web application to be reloaded once it was
changed/modified. How to achieve that? I really need your help! Thanks!


how are you using data.xml? by using the file attribute on the
appSettings element?

<appSettings file="data.xml" >
</appSettings>

--
Craig
Microsoft MVP - ASP/ASP.NET


Apr 12 '06 #4

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

Similar topics

6
635
by: Javier Cortés Cortés | last post by:
i am getting this error when i am trying to access any file(with the ext. aspx) from my remote server. the error is : Server Error in '/' Application. ---------------------------------------------------------------------------- ---- Runtime Error Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application
4
5393
by: tommy | last post by:
hello everbody, i write a little asp-application with forms-authentication. i copy my aspx-files with web.config to my webspace and i get the error above... i tried to set the custom-errors-tag ="off" but nothing happens.... what is my failure????
9
1895
by: Wayne Wengert | last post by:
I built an ASP application and it runs fine on my local IIS. I am trying to move the application to my web service (ISP) out on the internet. I've read several of the help articles but they all seem to think I am deploying to localhosts. I created a new directory on my web page and copied most of the files from the wwwroot subdirectory where my project exists. When I try to open the page (by pointing to "WebForm1.aspx in the new...
0
2584
by: George Durzi | last post by:
I'm trying to extend the ExceptionManager Application Block and build a custom publisher that writes my exceptions to the database. That's easy part. The difficulty I am having is in configuring my web application to use the custom publishers. Things to note. I have a reference to Microsoft.ApplicationBlocks.ExceptionManager in my web application The Microsoft.ApplicationBlocks.ExceptionManager is in my GAC, so there is no dll for it in...
3
375
by: Sean | last post by:
HI There, I am having trouble deploying my .aspx pages to a remote server, I have made changes to the config file and it still returns an error. I have also contacted the server administrator to create an application in IIS, what other checks can I make? Sean !-- error mesage
12
26818
by: Kevin Farless | last post by:
Hi all, I'm having trouble viewing any .aspx pages on my hosting company's server. The server is a new box running Windows Server 2003 default installation. I'm the first client to try using ASP.NET on this box and the administrator of the server has never setup an ASP.NET site before, so most likely the problem I'm experiencing is server settings related. Note in the Web.config below that the <customErrors mode="Off"/> is present,...
5
2282
by: rdcpro | last post by:
In reading MSDN docs on creating custom Configuration sections, I found this page: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpgenref/html/gngrfcustomelementfornamevaluesectionhandlerdictionarysectionhandler.asp At the very bottom, it says: Configuration File This element can be used in the application configuration file, machine configuration file (Machine.config), and Web.config files that are not at the
0
1832
by: BallCOMET | last post by:
I have an application that I built with Visual Studio 2005 and for which I enabled OpenMP. If I open the compiled binary in Visual Studio, this is the manifest that is embedded in the executable as RT_MANIFEST entry 1: <assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0"> <dependency> <dependentAssembly> <assemblyIdentity type="win32" name="Microsoft.VC80.CRT" version="8.0.50608.0" processorArchitecture="x86"...
7
4431
by: Tom | last post by:
I have built a VS 2005 C++ application (ported from VC++ 2003). It's a WinForm app. It runs OK on the development system, but when I try to deploy it on any other system, all users gets an error box, "Application configuration Error. Try re-installing the application. (Deployed using an MSI setup project). I downloaded Dependency Walker, and it says that 2 DLL's are not found: DWMAPI.DLL, EFSADU.DLL
0
9673
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9524
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,...
1
10168
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
9047
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
7546
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
5568
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4114
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
2
3730
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2924
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.