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

EndRequest Event is not handled

Hello

I want to handle the System.Web.HttpApplication.EndRequest event

i use the following code
System.Web.HttpContext.Current.ApplicationInstance .EndRequest += new
EventHandler(EndRequestHandler);
by EndRequestHandler method is never called.

I tried to make look around with ildasm for when the method that fires
EndRequest, but I got completely lost. MSDN documentation says the
CompleteRequest method causes EndRequest to be called, but I looked at its
IL code, it only sets a field _requestCompleted to true.

The Global.asax.cs method Application_EndRequest is getting called without a
problem. I debuged the application to see what method calls
Application_EndRequest, I looked at the call stack, but to my surprise,
there is only Application_EndRequest in the call stack, and below it is
<non-user code>. I also checked the cs compilation source for Global.asax
in the Temp ASP.NET files folder, still not clue.

I need to know wh is my EndReqeustHandler not being called, and how does the
process work? How is the Application_EndRequest is wired to the page event
chain.
Thanks a lot for reading and help

Best Regards

Sherif

Nov 17 '05 #1
0 2183

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

Similar topics

18
by: Christopher W. Douglas | last post by:
I am writing a VB.NET application in Visual Studio 2003. I have written a method that handles several events, such as closing a form and changing the visible status of a form. I have some code...
2
by: Peter | last post by:
Hello Thanks for reviewing my question. I am trying to consume the Keydown event of the Cntrl-shift-E in a textbox and have noticed that when I press key this combination a beep is made even...
2
by: mcr | last post by:
Hi Can anyone tell me how I can use the ShellFolderView.SelectionChanged event from C#? I have an webBrowserClass object. From its document property I get the ShellFolderView interface. From...
2
by: Neal | last post by:
Is there a way to determine in an EndRequest event method that response.redirect() has been called? I'm implementing a persistent server side page cache and I don't want to cache the response of a...
2
by: Breeto | last post by:
Can anyone please tell me why the following doesn't work... using System; using System.Web; namespace AspTests {
12
by: Jack Russell | last post by:
My unstanding of all VB up to and including vb6 is that an event could not "interrupt" itself. For instance if you had a timer event containing a msgbox then you would only get one message. ...
0
by: piyush | last post by:
In my application I observed that time taken between page_load to page_unload is much smaller than time taken between application_beginrequest and endrequest. I need to reduce the time taken...
10
by: eedarley | last post by:
Is there a way to force the consumer of my object to handle events that I've fired off? I don't care how they handle the event, just that they do. I think in c# there is a way but not sure about...
6
by: mj2736 | last post by:
I created a windows form control that inherits from the standard .Net DataGridView control, to which I've added custom functionality. Instead of using the standard control in my applications, I use...
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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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: 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...
0
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...
0
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,...
0
jinu1996
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 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.