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

How to make ISAPI filter in C#?

Hi all,

Is anyone of you can help me how to make ISAPI filter in C#?
Because i need to capture all the request on IIS before processing it.

many thanks in advance.
Wirawan

*** Sent via Developersdex http://www.developersdex.com ***
Jan 12 '06 #1
3 15200
Wirawan,

You can't do it completely in C#, since you can't export functions in C#
(which is something that is required for an ISAPI filter).

You can create a stub in C++ which will then call your .NET code, that's
about the only way you can do it.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"wirawan ngurah" <ig****@gmail.com> wrote in message
news:ey**************@TK2MSFTNGP15.phx.gbl...
Hi all,

Is anyone of you can help me how to make ISAPI filter in C#?
Because i need to capture all the request on IIS before processing it.

many thanks in advance.
Wirawan

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

Jan 12 '06 #2

"wirawan ngurah" <ig****@gmail.com> wrote in message
news:ey**************@TK2MSFTNGP15.phx.gbl...
| Hi all,
|
| Is anyone of you can help me how to make ISAPI filter in C#?
| Because i need to capture all the request on IIS before processing it.
|
| many thanks in advance.
| Wirawan
|
| *** Sent via Developersdex http://www.developersdex.com ***

You can't write ISAPI Extensions/filters using C#, nor should you, you can
write HttpHandlers, that offer the same funtionality. Search MSDN for
details on HttpHandlers and google around for samples and even more info.
Here's something to start with:

http://msdn.microsoft.com/library/de.../httphandl.asp
Willy,
Jan 12 '06 #3
saze
1
There are still occasions when you want ISAPI. HttpHandlers can do most (all?) of what you want, but if, say, you wanted a simple URL filter, if you do it in ISAP, all you have to do is filter the URL, but if you did it in HttpHandlers, you are going to have to do much more of the heavy lifting yourself for all sorts of tasks like doing the headers, properly handling 304 Not Modified, etc etc.


"wirawan ngurah" <ignw82@gmail.com> wrote in message
news:eyWXwpxFGHA.2704@TK2MSFTNGP15.phx.gbl...

You can't write ISAPI Extensions/filters using C#, nor should you, you can
write HttpHandlers, that offer the same funtionality. Search MSDN for
details on HttpHandlers and google around for samples and even more info.
Here's something to start with:

http://msdn.microsoft.com/library/de.../httphandl.asp


Willy,
May 6 '06 #4

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...
2
by: Norton | last post by:
I had a person tell me the other day that a person would not be able to beat the efficiency of an ISAPI dll, especially by using handlers/modules. Of course, they could only say the reason was that...
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...
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...
4
by: Jeeran | last post by:
We use an ISAPI filter to convert long urls into short clean ones. For example: "Site.com/user/john/" Is re-written as: "Site.com/user/userinfo.aspx?uid=john" Now, "userinfo.aspx" contains a...
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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,...

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.