473,386 Members | 1,873 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.

After installing .NET Framework 2.0 sp1, PostRequestHandlerExecuteevent never fires again!

Dear All:

I encount a problem after installing .NET Framework 2.0 sp1, anyone
can help?
I ever wrote a HTTP Module and provided a few event handler, including
PostRequestHandlerExecute event. I deployed this module in WebApp
which not only including WebPages but also some WebServices. Before I
install latest .NET Framework 2.0 sp1, all things are fine, but after
that, I found that when an aspx resource is visited the event never
fires again, but when an asmx resource is visited, the event DOES
fire!.

I checked my codes and found that if I call response.End() method in
page processing, the event stops working, but before installing .NET
Framework 2.0 sp1 this never happened.

Has Microsoft engineers changed the ASP.NET processing rules? or is
this a bug?

Below is some relevent codes:

#region IHttpModule Members

public void Dispose()
{
}

public void Init(HttpApplication context)
{
this._customErrors = GetWebCustomErrorsSection(context);
context.BeginRequest += new
EventHandler(context_BeginRequest);
context.AuthenticateRequest += new
EventHandler(context_AuthenticateRequest);
context.AuthorizeRequest += new
EventHandler(context_AuthorizeRequest);
context.PreRequestHandlerExecute +=new
EventHandler(context_PreRequestHandlerExecute);
context.PostRequestHandlerExecute += new
EventHandler(context_PostRequestHandlerExecute);
context.PreSendRequestHeaders += new
EventHandler(context_PreSendRequestHeaders);
}
#endregion

void context_PostRequestHandlerExecute(object sender,
EventArgs e)
{
HttpApplication app = sender as HttpApplication;
app.Response.Filter = new AuthFilter(app.Response.Filter,
app.Response, this);
}
Jun 27 '08 #1
0 777

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

Similar topics

3
by: CG | last post by:
Trying to install this program and it gets almost done and says that the install failed and gives me the option to see the error log, setup log but when i click them nothing happens. I tried...
4
by: Mathew | last post by:
Hello: I have an app that has been running for several months, but after installing SP4 on the Win2k server, it would no longer run. First I had a TemplateControl parser exception when the...
1
by: ewoiruweo | last post by:
After installing .net framework on a 2000 server for the first time this message appears when trying to open a basic default.aspx page: BC31019: Unable to write to output file...
7
by: Adam | last post by:
Im trying to add an httphandler for all *.sgf file extensions. I have developed the handler, 1. installed it into the gac 2. added it to the machine.config: <httpHandlers> <add verb="*"...
11
by: tshad | last post by:
I have a small Windows Service program that just has a timer on it and it built fine. I try to install it using InstallUtil and I get the following message: ...
0
by: Roman Troshkov | last post by:
Hello, I Hope to see any opinions on this problem: After installing Net framework 2 on one of our Win2003 Web server I have experiencing trouble accessing MS SQL 2000 database. Configuration...
1
by: Vern DeHaven | last post by:
Hello all, Working on a W2K3 box with Framework version 1.1.4322 here. I've implemented a Web service in VB.NET by generating a server skeleton off the WSDL and overriding the abstract class. ...
10
by: Robert | last post by:
I have an app that was originally 1.1, now migrated to 2.0 and have run into some sporadic viewstate errors...usually saying the viewstate is invalid, eventvalidation failed or mac error. My web...
9
by: dirk.dircksen | last post by:
Hi I've searched quite a bit and haven't been able to find an answer to this one: We're in the process of installing .Net 2.0 on our production servers (all Windows 2000 servers). None of the...
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: 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: 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...
0
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,...
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.