RE: log requests

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Jeffrey Tan[MSFT] (v-jetan_at_online.microsoft.com)
Date: 03/22/04


Date: Mon, 22 Mar 2004 05:49:54 GMT

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.



Relevant Pages

  • Re: Application pool identity using a local account not working
    ... Application Pool and there is no change notification from Windows ... it sounds like some custom code running on IIS does not work ... Custom code running on IIS ultimately must be either an ISAPI Filter, ... I have tried to run process monitor while the request is being made, ...
    (microsoft.public.inetserver.iis.security)
  • Re: HTTP POST data missing when ASP only authenticates by anoonymous
    ... I think the problem is with the ISAPI Filter because it has to correctly ... process ReadRawData to be able to steal the request and send it to Tomcat. ... We are using a Java application running on IIS with an ISAPI filter to ... > Fillin form in 'htm' file, POST to 'asp' file, display the post params ...
    (microsoft.public.inetserver.iis.security)
  • Re: BITS Downloader, IIS, retrieve a file named *.DLL
    ... You could change the ISAPI filter for your application to keep it from ... executing. ... this would most likely prevent other parts of IIS (or ... > location, IIS sees the request for ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: httpmodule causes VS.NET to refuse to open solution!
    ... please post the original question with your request. ... > But it is as long as your ISAPI filter isn't that complex - with a few ... > Next in IIS add a mapping of *.* to be processed by the ASP.NET DLL. ... > Before in inQuire2.COM+ the ISAPI filter would kick in and do a redirect ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: httpmodule causes VS.NET to refuse to open solution!
    ... please post the original question with your request. ... > But it is as long as your ISAPI filter isn't that complex - with a few ... > Next in IIS add a mapping of *.* to be processed by the ASP.NET DLL. ... > Before in inQuire2.COM+ the ISAPI filter would kick in and do a redirect ...
    (microsoft.public.dotnet.framework.aspnet)