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 4751
Change the sub name from Application_OnS tart to Application_Sta rt. 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_Sta rt, 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_OnS tart to Application_Sta rt. 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_Sta rt, Application_End or
Restart is a application specific event rather than some other events (
Begin_Request, Authenticate_re quest) 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_Sta rt, Application_End or Restart is a application specific event rather than some other events ( Begin_Request, Authenticate_re quest) 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 "SessionStateMo dule", 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
/aspnetsessionst ate.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 second,
etc. I'm using local variables, which should go out of context with
each test. Setting the 'propagate' property to False doesn't have any
affect.
import logging, os, signal, sys
from datetime import datetime
|
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...
|
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 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...
|
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
application_onstart event. So if i change my xml file I want that
updated content be used through out my application.
| |
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 attaching a
custom filter to Response.Filter, but the custom filter receives the
stream in separate chunks. I need the entire stream at once in order
to convert it to an XmlDocument. Does anyone know of a way to get the
entire output stream from a...
|
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 that this would look like this on disk:
some/
__init__.py
module.py (contains MyPythonClass)
|
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 me that we can debug the extend module on linux, but
cannot on windows. and using wingdbstub.py we can embed python into
other's source code but not extending.
Who can tell me the skills, I appreciate!
|
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 module level!!! Although code is working perfectly well when in Single Form view, when switching to Split Form view... problems. This must definitely be a bug unless there are limitations to Split Forms (doubt it).
Although there might be some...
|
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...
|
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,...
| |
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
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,...
|
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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...
|
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();...
|
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
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |