Results 1 to 2 of 2

Thread: [RESOLVED] write logfile to webserver

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Mar 2007
    Posts
    694

    Resolved [RESOLVED] write logfile to webserver

    During wcf development, I use a log file (using streamwriter) which gets written into my local machine's c drive (c:\serviceactivity.log)
    This way I can see the activities inside the .svc file.

    After deploying the site to the webserver, how do I see this file.
    I do not see the serviceactivity.log file in the c drive of the webserver.

    Question:
    How do I get the log file to write into the c drive?

    Thanks

  2. #2
    Frenzied Member Lightning's Avatar
    Join Date
    Oct 2002
    Location
    Eygelshoven
    Posts
    1,611

    Re: write logfile to webserver

    The account running the webservice doesn't have permissions to write to the c:\ (is shouldn't have permissions either).
    You should write the logfile to a location that is granted for that account.
    VB6 & C# (WCF LINQ) mostly


    If you need help with a WPF/WCF question post in the NEW WPF & WCF forum and we will try help the best we can

    My site

    My blog, couding troubles and solutions

    Free online tools

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width