Hi Anders,
Based on my understanding, you want to write a ISAPI filter in C# for your
IIS6.0.
This can not be done in .Net. Because except the aspx request, all the
other request or data through IIS will not notify the .Net Framework.(IIS
will not forward the requst to the .Net CLR).
The ISAPI filter is a unmanaged dll, which will be inject into the IIS's
process and hook the request of IIS. Using C#, you can only write a managed
assembly, which can not be inject it IIS process's space(Because managed
assembly can only execute in a CLR environment).
So you can only use Visual C++ to write a unmanaged dll as ISAPI filter for
IIS.
But, if you want to intercept the request for Asp.net application, .Net
provide the HTTP Filters for you, please refer to:
"Intercept, Monitor, and Modify Web Requests with HTTP Filters in ISAPI and
ASP.NET"
http://msdn.microsoft.com/msdnmag/issues/02/08/HTTPFilters/default.aspx
Thank you for your patience and cooperation. If you have any questions or
concerns, please feel free to post it in the group. I am standing by to be
of assistance.
Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! -
www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.