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

httpmodule question

Raj
Hi there,
I have written a small httpmodule which basically scan the incoming
request on
a perticular domain and pass the url based on mappings. more like a
url rewriter
e.g. http://www.abc.com/joe.block/index.html will actully be mapped to
c:\root\docs\somedir\joeblocks\index.html

for this HttpModule to take effect I have done the wildcard mapping on
main folder but I want to allow to have classic asp pages in one of
the subfolders

Since all my requests are enrouted thru aspnet_isapi.dll My request to
asp page
is served but not in a executed form.
Is there any way I can trick IIS6 to do this for me.
Or is it something not possible.

Thanks
RAJ
Nov 19 '05 #1
5 1382
ISAPI extensions are only at the application level, so make the subfolder
its own virtual directory in IIS. That shouldn't be a problem since it's
all ASP code, meaning you're not trying to share session state or anything
else like that.

-Brock
DevelopMentor
http://staff.develop.com/ballen
Hi there,
I have written a small httpmodule which basically scan the incoming
request on
a perticular domain and pass the url based on mappings. more like a
url rewriter
e.g. http://www.abc.com/joe.block/index.html will actully be mapped to
c:\root\docs\somedir\joeblocks\index.html
for this HttpModule to take effect I have done the wildcard mapping on
main folder but I want to allow to have classic asp pages in one of
the subfolders

Since all my requests are enrouted thru aspnet_isapi.dll My request to
asp page
is served but not in a executed form.
Is there any way I can trick IIS6 to do this for me.
Or is it something not possible.
Thanks
RAJ


Nov 19 '05 #2
as asp.net took the request rather than asp, you are kinda stuck. you could
write an asnp.net module that hosted asp (might be fun) or you can switch
to a real isapi filiter (written in c) that will work in this case.

-- bruce (sqlwork.com)

"Raj" <ra*****@hotmail.com> wrote in message
news:47**************************@posting.google.c om...
Hi there,
I have written a small httpmodule which basically scan the incoming
request on
a perticular domain and pass the url based on mappings. more like a
url rewriter
e.g. http://www.abc.com/joe.block/index.html will actully be mapped to
c:\root\docs\somedir\joeblocks\index.html

for this HttpModule to take effect I have done the wildcard mapping on
main folder but I want to allow to have classic asp pages in one of
the subfolders

Since all my requests are enrouted thru aspnet_isapi.dll My request to
asp page
is served but not in a executed form.
Is there any way I can trick IIS6 to do this for me.
Or is it something not possible.

Thanks
RAJ

Nov 19 '05 #3
Thanks Broc , but I didn't quite understand How I implement that. Did
you mean that I have to create new virtual directory OR separate website
itself. ?

*** Sent via Developersdex http://www.developersdex.com ***
Nov 19 '05 #4
Just a new virtual directory. Go into IIS and find your top level ASP.NET
app, find the ASP sub folder and right-click to get its properties. There's
a button on that dialog that says "Create" or something like that. This makes
the sub dir its own virtual directory. You can have nested virtual directories.
You definetly don't want a new website (at least from what you've described).

-Brock
DevelopMentor
http://staff.develop.com/ballen
Thanks Broc , but I didn't quite understand How I implement that. Did
you mean that I have to create new virtual directory OR separate
website itself. ?

*** Sent via Developersdex http://www.developersdex.com ***


Nov 19 '05 #5
Its my understanding that a difference now with asp.net 2.0 is that an
httpmodule in asp.net 2.0 will pass off requests to the proper handler,
whereas in the past it may not have.
Im posting a question on this now to get more details.

"Bruce Barker" wrote:
as asp.net took the request rather than asp, you are kinda stuck. you could
write an asnp.net module that hosted asp (might be fun) or you can switch
to a real isapi filiter (written in c) that will work in this case.

-- bruce (sqlwork.com)

"Raj" <ra*****@hotmail.com> wrote in message
news:47**************************@posting.google.c om...
Hi there,
I have written a small httpmodule which basically scan the incoming
request on
a perticular domain and pass the url based on mappings. more like a
url rewriter
e.g. http://www.abc.com/joe.block/index.html will actully be mapped to
c:\root\docs\somedir\joeblocks\index.html

for this HttpModule to take effect I have done the wildcard mapping on
main folder but I want to allow to have classic asp pages in one of
the subfolders

Since all my requests are enrouted thru aspnet_isapi.dll My request to
asp page
is served but not in a executed form.
Is there any way I can trick IIS6 to do this for me.
Or is it something not possible.

Thanks
RAJ


Nov 19 '05 #6

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

Similar topics

3
by: Samuel | last post by:
I wrote a very simple httpmodule and tried to compile it with no success. This is my code: ============== Imports System Imports System.Web Imports Microsoft.VisualBasic NameSpace...
7
by: nail | last post by:
Folks, I develop a HttpModule and it works correct, but one problem is occurs. After I register the httpmodule in the web.config, my pages (not testing http://localhost/site but...
7
by: Shapiro | last post by:
I have a scenario where I log a resquest to a database table and update the request with a corresponding response including the response time. I am using an HttpModule to do this. My challenge...
4
by: Danny W | last post by:
Hi There! Is it possible to use HttpModule to replace the built-in ASP.NET Session object? I want to write a HttpModule that will handle storing and retrieving of session values from an external...
2
by: Simon-Pierre Jarry | last post by:
Hi, I created a custom HttpModule for managing the security of my application. in "Init" sub, I regsiter the events doing that : Public Sub Init(ByVal context As System.Web.HttpApplication)...
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...
1
by: Max | last post by:
I have my HTTPModule or HTTPHandler registered to process all file types (*). I have IIS configured to pass all requests to ASP.NET for this virtual directory. In some cases depending on the...
2
by: Sheila | last post by:
Hi, I have setup a Sharepoint 2003 server which has an ISAPi filter installed, now I want to develop a HTTPModule which needs to run before the ISAPI filter. So my question is, if a HTTPModule...
3
by: Joseph Geretz | last post by:
I'm implementing a web application whose purpose in life is to act as a data conduit. Data is posted to my Web app in XML format, my application examines the data and forwards it onward by posting...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
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: 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)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.