473,398 Members | 2,525 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,398 software developers and data experts.

ISAPI filter and directory browsing

I have a virtual directory where I allow browsing. When I implemented ISAPI
filter for this directory (I deny access in some cases based on request
headers), the contents of the directory are not being generated anymore. How
do I (from my Http module code) explicitly call IIS script that generates
directory contents? Or suggest, please other options to achieve the same
result.

Thanks in advance,
Dmitry.
Nov 19 '05 #1
2 1810
I assume that your now passing all traffic for this application via the asp
isapi, and your module is now in the pipeline. This effectively means that
some functionality typically provided by IIS is now being given to the asp
isapi - thus you'll have to replicate some of the functionality.

You could add the method directly to the ihttpmodule to list the directory,
and return the details via the filter option by modifying the binary output
stream for those allowed to browse. Or try a server transfer from within
the module to an asp.net script that lists it.

--
Regards

John Timney
ASP.NET MVP
Microsoft Regional Director

"Dmitry Duginov" <di**@nospam.nospam> wrote in message
news:eo**************@TK2MSFTNGP10.phx.gbl...
I have a virtual directory where I allow browsing. When I implemented ISAPI filter for this directory (I deny access in some cases based on request
headers), the contents of the directory are not being generated anymore. How do I (from my Http module code) explicitly call IIS script that generates
directory contents? Or suggest, please other options to achieve the same
result.

Thanks in advance,
Dmitry.

Nov 19 '05 #2
Thanks for John's inputs,

Hi Dmitry,

ASP.NET by default will only take care of those request which has
particular extensions such as ".aspx" ".asmx" ..... , so if the user type
the following url

"http://server/vdir/" ,

it won't be router to ASP.NET pipeline, but success or fail according to
the IIS's vdir setting. So what kind of directory browsing function do you
want to implement? Is it possible that we provide a certain HttpHandler
(mapping to a certain extenstion) to display directory structure ? From my
view, this is a formal means in ASP.NET.
Also, if you do need to accept those raw request to directory path,
"http://server/vdir/"

you may need considering use unmanaged ISAPI filter.

Thanks,
Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)


Nov 19 '05 #3

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

Similar topics

1
by: balaji | last post by:
How can i design an ISAPI Filter that works with IIS-6.0 on win 2003 platform. I already have an ISAPI Filter that i designed for working with IIS 5.x and that works fine . I am finding a problem...
1
by: Jeremy | last post by:
Hi there, We recently upgraded to the 1.1 framework, and of course, all of our 1.0 asp.net apps starting using the 1.1 framework, which we didn't want to happen. I found an MS article saying...
2
by: Jon Maz | last post by:
Hi All, I've been looking into options for URL Rewriting in .net, and to be honest, I haven't seen anything that's easier than the old Classic Asp solution with an ISAPI filter redirecting to an...
10
by: Guoqi Zheng | last post by:
I know I can use http module in my asp.net project to rewrite url. However that is only true for .aspx page, there are many other static page in my application such as .htm. .asp, etc. My...
4
by: Serg | last post by:
How do I install ISAPI filter in IIS? I need ISAPI filter to process folder paths such as http://MyUrl/folder1/folder2/folder3 There is no "ISAPI filters" tab in my IIS. Thanks!
4
by: Yet another C# coder | last post by:
Hi, Does anyone know if in the next version of asp.net / C# (2.0) Would be possible to write an ISAPI Filter in C#? Thanx.
2
by: Drew Burchett | last post by:
I am currently coding an ISAPI filter and I would like to use some .Net functionality within the filter. However, when I include calls to anything in the framework, it locks the dll and will not...
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...
0
by: Chris Curvey | last post by:
Hi all, I'm trying to write an ISAPI filter in Python, using the examples that come in the "isapi" directory of the win32com package. The installation program itself runs fine, but when I...
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
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
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...
0
agi2029
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,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...

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.