Urgent Pls: Facing problem in reading Log information from Log file, created by IIS

Discussion in 'ASP .Net' started by Amratash, Apr 13, 2004.

  1. Amratash

    Amratash Guest

    Hi,
    I needyour help.Its urgent.
    My main aim is to log the site activities in a database at runtime.
    I'm using W3C Extended Log File format for logging information. I can use
    ODBC Logging directly but I want cookies in place of IP Address. And Cookies
    are available only in W3C Extended logging format.
    Anyway, the IIS is creating the log file in
    D:\WINDOWS\system32\LogFiles\W3SVC1 folder correctly.
    Now I want to read text from this file & manipulate it and store in
    database. For this I developed an windows application which will use
    STREAMREADER to read contents of log file.
    When one of the web application, which is host at this server, is running &
    at that time if i try to read from log file then I'm getting an error of
    "ACCESS DENIED : FILE IS BUSY WITH OTHER PROCESS"

    If i stop the website, then after 2-3 mins, i will be able to read from that
    log file.

    What to do here...Can't we change the permissionsof the log file?
    Pls reply soon. Its really urgent.
    Thanks.
    Regards,
    :)Amratash
     
    Amratash, Apr 13, 2004
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. subrato
    Replies:
    8
    Views:
    943
    Juan T. Llibre
    Mar 14, 2006
  2. Replies:
    1
    Views:
    3,274
    lordy
    Jun 29, 2006
  3. unomystEz
    Replies:
    0
    Views:
    586
    unomystEz
    Nov 19, 2006
  4. Replies:
    5
    Views:
    2,194
    Dag Sunde
    Nov 22, 2006
  5. Replies:
    0
    Views:
    1,420
Loading...

Share This Page