How to make ISAPI filter in C#?

W

wirawan ngurah

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
 
N

Nicholas Paldino [.NET/C# MVP]

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.
 
W

Willy Denoyette [MVP]

| 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
|
|

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/default.asp?url=/library/en-us/dnaspp/html/httphandl.asp


Willy,
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top