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

Application_Start(Object sender, EventArgs e) - When does it realy runs?

I have put code inside this method (Global.asax) but not even after
re-starting my machine or the aspnet_wp.exe service it seems to execute
the code inside of it. When does this methods really gets called? Any
ideas?

Thanks.

Nov 19 '05 #1
2 1442
It runs when the first Request is received.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
What You Seek Is What You Get.

"mswc.net" <oa*****@gma.com> wrote in message
news:11**********************@g14g2000cwa.googlegr oups.com...
I have put code inside this method (Global.asax) but not even after
re-starting my machine or the aspnet_wp.exe service it seems to execute
the code inside of it. When does this methods really gets called? Any
ideas?

Thanks.

Nov 19 '05 #2
It'll get called when the first page is requested. I believe it is called
when the first call to the HttpRuntime's ProcessRequest is called (which
would be the first page hit).

Karl

--
MY ASP.Net tutorials
http://www.openmymind.net/ - New and Improved (yes, the popup is
annoying)
http://www.openmymind.net/faq.aspx - unofficial newsgroup FAQ (more to
come!)
"mswc.net" <oa*****@gma.com> wrote in message
news:11**********************@g14g2000cwa.googlegr oups.com...
I have put code inside this method (Global.asax) but not even after
re-starting my machine or the aspnet_wp.exe service it seems to execute
the code inside of it. When does this methods really gets called? Any
ideas?

Thanks.

Nov 19 '05 #3

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

Similar topics

2
by: paulo | last post by:
I have an asp.net app on 3 webservers (all same platform). The apps make extensive use of Application variables. A problem is occuring on 1 app - I have itentified that application variables are...
6
by: Binoy | last post by:
Hello, I am getting this error once in a while from my web sites. When I will refresh web browser, it goes off and sites are working fine. Directory structures and file names are as below- ...
5
by: Natan | last post by:
Hi! I have an object stored in the HttpApplicationState collection of my site, but i would like to mantain the state of this object even if the application restart, so in case of any problem or...
0
by: SeanGallavan | last post by:
Our Environment: Two network load balanced (using Microsoft NLB software) webservers with session maintained in a SQL Server database. NLB is configured with no affinity settings and two...
8
by: Vishwanathan Raman | last post by:
Hi I have a declared a static DataSet object SOBJ in Global.asax.I also have a localy defined DataSet LSOBJ in Global.asax which I am storing in Application State.Is there any technical...
4
by: NoNickname | last post by:
Hi, I need to get a string from a COM component at application start. (It's a Long Story and I cannot change this fact.) In ASP.NET 1.1, I simply called this COM component in Global.asax.cs...
3
by: simonZ | last post by:
in global.asax file of my web application I defined: public void Application_Start(Object sender, EventArgs e) { String besedila = new String; besedila = "test"; Application = besedila;
5
by: MattB | last post by:
I'm trying to put some code in my asp.net 1.1 application that checks some dependencies. I want to alert the user if something is missing or a component version is out of sync. I've been able to...
1
by: =?Utf-8?B?YXVzdGlyb2I=?= | last post by:
Hi, While I realise that this may not be a very nice solution architecturally, I kick off a Scheduler in an ASP.NET 2.0 webservice in Application_Start() which is supposed to call a stored proc...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
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
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...

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.