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 4732
Change the sub name from Application_OnStart to Application_Start. Then add
the HTTP module to the application in web.config. That's all.
"Mike Logan" wrote: 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
Yes, I messed up on the Application_Start, but you cannot attach a delegate
to the Application Start it is not advertised in the HTTPApplication class.
Mike L.
"Rulin Hong" wrote: Change the sub name from Application_OnStart to Application_Start. Then add the HTTP module to the application in web.config. That's all.
"Mike Logan" wrote:
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
Hi Mike,
the ASP.NET HttpModule is capable of synchorize most application events but
not all. As we can see such events as Application_Start, Application_End or
Restart is a application specific event rather than some other events (
Begin_Request, Authenticate_request) which are per-request specific. And
the following kb article as list all the available and supported events of
HttpModule:
#INFO: ASP.NET HTTP Modules and HTTP Handlers Overview http://support.microsoft.com/default...b;en-us;307985
Thanks.
Regards,
Steven Cheng
Microsoft Online Support
Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
One of the questions asked that I was interested in is the Session_Start and
Session_End. These two events do not seem to be listed in the URL. When is
session "created" when is session id valid. I know that on Begin_Request the
session is not valid.
Kevin
"Steven Cheng[MSFT]" wrote: Hi Mike,
the ASP.NET HttpModule is capable of synchorize most application events but not all. As we can see such events as Application_Start, Application_End or Restart is a application specific event rather than some other events ( Begin_Request, Authenticate_request) which are per-request specific. And the following kb article as list all the available and supported events of HttpModule:
#INFO: ASP.NET HTTP Modules and HTTP Handlers Overview http://support.microsoft.com/default...b;en-us;307985
Thanks.
Regards,
Steven Cheng Microsoft Online Support
Get Secure! www.microsoft.com/security (This posting is provided "AS IS", with no warranties, and confers no rights.)
Hi Kevin,
As for the Session management, we can found that the ASP.NET has some
buildin HttpModules registererd and each comming request will go through
those modules and one of them is called "SessionStateModule", you can also
find it in the machine.config's HttpModule section.
That's the one which does the most job for Session. Here is a tech article
in MSDN wihch also mentioned this: http://msdn.microsoft.com/library/de...us/dnaspp/html
/aspnetsessionstate.asp
Hope helps. Thanks.
Regards,
Steven Cheng
Microsoft Online Support
Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.) This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Steve Erickson |
last post by:
I have a logger class that uses the Python logging module. When I
call it within a program using the unittest module, I get one line in
the log file for the first test, two identical ones for the...
|
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...
|
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.
|
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...
|
by: archana |
last post by:
Hi all,
I am new to asp.net. I am having one confusion regarding
application_onstart event.
Let me explain what i am doing:-
Say i have one xml file whose setting i am reading on...
|
by: Josh Naro |
last post by:
I am writing a module that requires the entire output from a web app
to perform its function. So, basically I need to be able to pull the
entire output stream from the Response object. I've tried...
|
by: Stefan Arentz |
last post by:
Is it possible to mix classes defined in both Python and C in the same
module? Ideally I would like to be able to do:
from some.module import MyPythonClass, MyCClass
I guess that would mean...
|
by: tcfg |
last post by:
dear all:
I have searched the debug informations of many python's IDE, but I
cannot find the method about debuging the extend module written in
Visual studio 2008 on windows.
The wingIDE tell...
|
by: geosmy |
last post by:
Hi everyone,
First post here!
I have been trying to upgrade to Acc2007 looking forward to using Split Forms.
To my horror I have just discovered that Split Forms do not hold variables at...
|
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...
|
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...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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...
|
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: 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,...
|
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...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|
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...
| |