|Windows Service not writing text file after installation in Windows Service System|
Check the following:
- The account running the windows service has write permissions on the
- The folder path is correct.
- You might be running the service as Admin on your local box, hence it
has all privileges.
- Also in your Exception block, ensure the ex.ToString() is logged. It
gives a lot of info.
client.Close() can also raise an exception. Take care
of that scenario.
If there are file access issues, then put an uber try/catch block and
try to write the text file on a public folder first where you know Everyone