Before I post about my problem, please consider the following: If you are having problems with a windows application (especially a commercial app that run's as a service on a server), where would you look for the error/log file?
Ok, so yes, I have written a windows service that run's on a Windows 2008 server. I need to log errors/program activity to a text file. I would like to store the text file in the Program Files directory with my application (and let's be honest, is where any tech or any programmer would expect to find it). So given the issues with UAC, how can I save the log file to the program files directory?
Before anyone lectures me about not writing to Program Files folder, MS SQL stores its own database files (and log files) inside the program files folder which are written to constantly. How about that for not following your own advice???
Ok, so yes, I have written a windows service that run's on a Windows 2008 server. I need to log errors/program activity to a text file. I would like to store the text file in the Program Files directory with my application (and let's be honest, is where any tech or any programmer would expect to find it). So given the issues with UAC, how can I save the log file to the program files directory?
Before anyone lectures me about not writing to Program Files folder, MS SQL stores its own database files (and log files) inside the program files folder which are written to constantly. How about that for not following your own advice???