[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
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.