471,319 Members | 1,369 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,319 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 15075
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 discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by balaji | last post: by
2 posts views Thread by Norton | last post: by
2 posts views Thread by Jon Maz | last post: by
4 posts views Thread by Yet another C# coder | last post: by
2 posts views Thread by Drew Burchett | last post: by
2 posts views Thread by Sheila | last post: by
reply views Thread by Chris Curvey | last post: by
reply views Thread by rosydwin | last post: by

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.