Windows Service and the File System

  • Thread starter Thread starter Chris Dunaway
  • Start date Start date
C

Chris Dunaway

Can a Windows service write to a file on the local file system? I was
using the Enterprise Library to log to a file and also to the
application log. The entries to the application log work correctly,
but the entries to a log file do not write. I cannot find the log file
it is supposed to be writing to.

Thanks
 
If your service is running as "localsystem" it might be a problem of
insufficent rights
 
Chris Dunaway said:
Can a Windows service write to a file on the local file system?
Yes.

I was using the Enterprise Library to log to a file

What it this? When I do logging like this, I just open a FileStream,
write data to it and close the stream again.

HTH,
Phill W.
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top