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

HttpModule runs for every extension?

Hi everyone,

I am running into a slight problem. My understanding is that a custom
HttpModule will run for every request made to the server, regardless of the
extension. I do not experience this behavior. My module only runs for the
extensions handled by the aspnet_isapi.dll.

Here are my sequence of steps:
1) Create the HttpModule
2) Compile and drop dll in the webApp bin directory.
3) Register it in the Web.config.

Can somebody please guide me in the right direction? I specifically need
this HttpModule to process requests when the page does not exist in the
application, so I can pull the page from another server and surface it using
context.Response.Write. The urls the users will be entering have no
extension, so the url looks like http://www.mysite.com/AAAABAA.

Currently this goes directly to the IIS 404 setting and not to my HttpModule
code.

Thanks in advance,

May 15 '06 #1
1 1867
a HttpModule because its an asp.net module, will only run if the extension
is mapped to asp.net. so, you will to map all files to asp.net. in the next
release of IIS, you will be able to write isapi filters in a .net language
and not need to do this.
-- bruce (sqlwork.com)
"Faraz" <Fa***@discussions.microsoft.com> wrote in message
news:38**********************************@microsof t.com...
Hi everyone,

I am running into a slight problem. My understanding is that a custom
HttpModule will run for every request made to the server, regardless of
the
extension. I do not experience this behavior. My module only runs for the
extensions handled by the aspnet_isapi.dll.

Here are my sequence of steps:
1) Create the HttpModule
2) Compile and drop dll in the webApp bin directory.
3) Register it in the Web.config.

Can somebody please guide me in the right direction? I specifically need
this HttpModule to process requests when the page does not exist in the
application, so I can pull the page from another server and surface it
using
context.Response.Write. The urls the users will be entering have no
extension, so the url looks like http://www.mysite.com/AAAABAA.

Currently this goes directly to the IIS 404 setting and not to my
HttpModule
code.

Thanks in advance,

May 15 '06 #2

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

Similar topics

1
by: poi | last post by:
I have an HttpModule defined in my web.config, sometimes I want to use it and sometimes I don't. Is there a way to declare whether I need it or not in my code-behind? Thanks. *** Sent via...
2
by: don smolen | last post by:
I know that we can perform authentication of .aspx pages with an HttpModule, and that the same module can probably be used for static content (.htm, .jpg, etc.) by sending them through the ASP.Net...
4
by: | last post by:
I have earlier used an HttpModule that did URL rewrites on the BeginRequest event. Now I am trying to use the same module in a different application on a new and upgraded machine (winxp sp2). ...
3
by: MWells | last post by:
I'm having an issue getting my HttpHandlers and HttpModules to play together nicely. My HttpHandlers take special document types (defined by extension) and process them specially. I might have...
3
by: Adam | last post by:
Its my understanding that in asp.net 2.0 you can write an httpmodule that will acts as a wildcard handler and pass requests on to the proper engine, for instance, asp or perl for example, In the...
1
by: Hardy Wang | last post by:
Hi all, I built a HttpModule for one of my ASP.NET application to handle some special file format (*.DEC1, *. DEC2). My code is like below public class MyClass : IHttpModule { public MyClass() {...
2
by: walter | last post by:
Hi there, I know there is pool of HttpApplications, and for each request coming in, HttpRuntime will dedicate one from pool to serve the request. My questions are : 1. since HttpModule is plug...
3
by: Jose Fernandez | last post by:
HI first of all, excuse me for my english. And Thank in advance for even read my post. I have a problem that is driving me insane. I have an application (JUCAR) which use HttpModule and i have...
3
by: Dan Sikorsky | last post by:
I use an HttpModule that handles unhandled exceptions from an .aspx.cs page by logging to a text file, logging to the event viewer's app log, and sending out an email to the website developer and...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: marcoviolo | last post by:
Dear all, I would like to implement on my worksheet an vlookup dynamic , that consider a change of pivot excel via win32com, from an external excel (without open it) and save the new file into a...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...

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.