Previous Next

Thread: HttpRequest.AppendToLog under IIS7 does nothing

Last post 11-07-2007 2:09 AM by anilr. 1 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (2 items)

Sort Posts:

  • 10-31-2007, 8:41 AM

    • alex_r
    • Not Ranked
    • Joined on 10-31-2007, 12:31 PM
    • Posts 1
    • alex_r

    HttpRequest.AppendToLog under IIS7 does nothing

    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.

  • 11-07-2007, 2:09 AM In reply to

    • anilr
    • Top 10 Contributor
    • Joined on 05-23-2006, 10:13 PM
    • Redmond, WA
    • Posts 966
    • anilr

    Re: HttpRequest.AppendToLog under IIS7 does nothing

    This is a known bug in vista rtm, is fixed in vista sp1 beta and ws08 beta3

    Anil Ruia
    Senior Software Design Engineer
    IIS Core Server
Page 1 of 1 (2 items)
Page view counter