Hi
I'm trying to use HttpRequest.AppendToLog function in my ASP.Net project. It works under iis6, and does the expected thing. However under iis7 on windows vista i don't get any result.
Here is a code for the test page:
<%@ Page Language="C#" AutoEventWireup="true" %>
<% Response.AppendToLog("test"); Response.Write(DateTime.Now.ToString()); %>
Here is line from IIS6 log for above page:
#Fields: date time s-sitename s-ip cs-method cs-uri-stem cs-uri-query s-port cs-username c-ip cs(User-Agent) sc-status sc-substatus sc-win32-status
2007-10-31 12:10:00 W3SVC1 216.72.33.140 GET /sfs/log.aspx test 80 - 192.168.203.28 Mozilla/4.0+(compatible;+MSIE+7.0;+Windows+NT+6.0;+SU+3.005;+SLCC1;+.NET+CLR+2.0.50727;+InfoPath.2) 200 0 0
Here is line from IIS7 log:
#Fields: date time s-sitename s-computername s-ip cs-method cs-uri-stem cs-uri-query s-port cs-username c-ip cs-version cs(User-Agent) cs(Cookie) cs(Referer) cs-host sc-status sc-substatus sc-win32-status sc-bytes cs-bytes time-taken
2007-10-31 11:21:31 W3SVC1 RAMI fe80::3503:1649:19ef:d9de%8 GET /sfs/log.aspx - 80 - fe80::3503:1649:19ef:d9de%8 HTTP/1.1 Mozilla/4.0+(compatible;+MSIE+7.0;+Windows+NT+6.0;+SU+3.005;+SLCC1;+.NET+CLR+2.0.50727;+InfoPath.2) - - rami 200 0 0 240 434 29562
Is this a bug? Unsupported under IIS7? Or may be some hidden setting in II7?
Thanks in advance.