« Previous Next »

Thread: HttpRequest.AppendToLog under IIS7 does nothing

Last post 07-01-2009 7:58 AM by Matze178. 6 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (7 items)

Sort Posts:

  • 10-31-2007, 8:41 AM

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

    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 2,247

    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
  • 06-05-2009, 6:26 AM In reply to

    • Matze178
    • Not Ranked
    • Joined on 06-05-2009, 10:22 AM
    • Posts 3

    Re: HttpRequest.AppendToLog under IIS7 does nothing

    Using Vista SP2: still nothing. Any ideas?

  • 06-05-2009, 1:10 PM In reply to

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

    Re: HttpRequest.AppendToLog under IIS7 does nothing

    What is the file version of webengine.dll in the Framework directory?

    Anil Ruia
    Senior Software Design Engineer
    IIS Core Server
  • 06-16-2009, 10:21 AM In reply to

    • Matze178
    • Not Ranked
    • Joined on 06-05-2009, 10:22 AM
    • Posts 3

    Re: HttpRequest.AppendToLog under IIS7 does nothing

    File version is 2.0.50727.4016

  • 07-01-2009, 7:47 AM In reply to

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

    Re: HttpRequest.AppendToLog under IIS7 does nothing

    There should be some more strings in the version - indicating build branch or something like that.

    Anil Ruia
    Senior Software Design Engineer
    IIS Core Server
  • 07-01-2009, 7:58 AM In reply to

    • Matze178
    • Not Ranked
    • Joined on 06-05-2009, 10:22 AM
    • Posts 3

    Re: HttpRequest.AppendToLog under IIS7 does nothing

    Sorry, this is all information displayed. This is what I did:

    1. Go to "C:\Windows\Microsoft.NET\Framework\v2.0.50727" in Explorer
    2. Go to "Properties" on file "webengine.dll", Page "Details"
    3. Available Properties are:

    - File description: "Microsoft ASP.NET Support DLL"
    - Type: "Application Extension"
    - File version: "2.0.50727.4016"
    - Product name: "Microsoft .NET Framework"
    - Product version: "2.0.50727.4016"
    - Copyright: "Microsoft Corporation. All rights reserved."
    - Size: "424 KB"
    - Date modified: "29.03.2009 21:42"
    - Language: "English (United States"

Page 1 of 1 (7 items)