log requests

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

We need to make a component in C# that saves almost the same info as the log files in IIS does and we need to do it for all sites in IIS6, how can it be done
It's like an ISAPI file that were used in IIS5 but we need to do it in C# and for IIS6.
 
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.
 
Hi Anders,

Does my reply make sense to you?

Do you still have any concern? Please feel free to feedback. Thanks

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.
 
Hi Anders,

Thanks very much for your feedback.

Thanks for your understanding. If you have any further concern, please feel
free to post, I will help you.

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.
 
Back
Top