Windows Service - which account type should I install under? Need to
access files the service produces
I have a Windows Service called 'Retrieve and Process Security Logs'
This service does the following:
Retrieves data from web apis (using HttpWebRequest)
Saves an ID from retrieved data to a text file. 3 files in total are saved
(one for each web api)
Sends data to a tcp service (not important - as long as the service has
net access which it would do for point 1)
Question:
The Windows Service saves data in to a text file, is it possible for this
text file to be in a location where all users of the installed machine can
access it?
I have a Console app which is just a replica of the Service and when it
runs I can go into the folder and see the text files. However when I run
the Service I do not see the text files - but the service code did run
(verified by point 3).
Thanks, Andrew
Edit: I should also mention that the project uses Enterprise Logging and I
do not see the generated log file either. It is as if the files are being
created in a magical place.
No comments:
Post a Comment