473,698 Members | 2,023 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Question regarding application_ons tart event.

Hi all,

I am new to asp.net. I am having one confusion regarding
application_ons tart event.

Let me explain what i am doing:-

Say i have one xml file whose setting i am reading on
application_ons tart event. So if i change my xml file I want that
updated content be used through out my application.

So indirectly wnat i want is to unload application and reload it
again. Which i don't know if possible or not.

So can anyone tell me how to unload and reload application.

Any help will be truely apprecated.

Mar 1 '07 #1
1 1314
You're better off using a watch on the file to see if it changes, and if it
does re-load the new XML file.

http://msdn2.microsoft.com/en-us/lib...emwatcher.aspx

"archana" <tr************ **@yahoo.comwro te in message
news:11******** **************@ q2g2000cwa.goog legroups.com...
Hi all,

I am new to asp.net. I am having one confusion regarding
application_ons tart event.

Let me explain what i am doing:-

Say i have one xml file whose setting i am reading on
application_ons tart event. So if i change my xml file I want that
updated content be used through out my application.

So indirectly wnat i want is to unload application and reload it
again. Which i don't know if possible or not.

So can anyone tell me how to unload and reload application.

Any help will be truely apprecated.

Mar 1 '07 #2

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

Similar topics

4
3714
by: Mark Hoagland | last post by:
I've got a scenario with a web application where I must access the virtual directory being accessed from within the Application_OnStart event handler. Specifically, I have a series of IIS virtual directories which all point to the same set of ASP pages. However, since each virtual directory is a separate 'application', each has its own set data which must be cached. To detect which data must be cached for each virtual directory, I need to...
1
1655
by: fruddy | last post by:
Hi everyone, Just wanted to ask about Application_OnStart in the global.asa. Now if I request one page from a particular site when I first go to that site say mysite.com/default.asp that triggers the Application_OnStart function. Now if I request another page on this same site, the Application_OnStart function would not be called again. To have it be called again I would have to restart the application in
3
1796
by: Bren | last post by:
Hi All In the global.asa file, when does the Application_OnStart event trigger? Is it:- 1. When the webserver starts or 2. When the website is first accessed AFTER the webserver has started. Further to this when would the Application_OnEnd trigger? Regards
3
2639
by: F C | last post by:
Hello, I would like to find the virtual directory name from within Application_onStart in global.asa. I am in ASP, not ASPX. I have no server.AppPath. Thanks for your help. François.
44
4213
by: craig | last post by:
I am wondering if there are some best practices for determining a strategy for using try/catch blocks within an application. My current thoughts are: 1. The code the initiates any high-level user tasks should always be included in a try/catch block that actually handles any exceptions that occur (log the exception, display a message box, etc.). 2. Low-level operations that are used to carry out the high level tasks
19
2058
by: Shiv Kumar | last post by:
I see that the Application_OnStart event is fired only once for a certain application. I'm interested in creating a "global" object (an object that will be available to all requests for the application). I thought I could use this event to create an instance of my object. I find that the event does get fired and an instance is created. However, when I reference this object from a page it is null. What gives? What is the recommended way...
8
1462
by: Marek | last post by:
Hi, Is Application_OnStart event hadler guaranteed to finish its execution before another HttpApplication object is brought into life? Marek
5
4755
by: Mike Logan | last post by:
We are creating an HTTP Module to add code to the Application On Start of an applicaton. However, there is no HTTPApplication.OnStart event to attach to. Does anyone know how to attach to this event? Oh, and while we are at it, attach to the Session Start also. Thanks, -- Mike Logan
5
1796
by: archana | last post by:
Hi all, I am using timer to do some functionality on user specified time. I am using system.timers.timer class and its timer to do this functionality. What i am doing is i set autoreset to false as i want to start processing only on user specified time. I am setting interval as difference between user sepcified time and current time. And when that elapsed event occured i am again setting
0
8674
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
8603
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,...
0
9157
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
7725
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...
0
5860
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4369
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4619
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2329
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2001
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.