Tracing not allowed in installed winforms application

  • Thread starter Thread starter enantiomer
  • Start date Start date
E

enantiomer

I have tracing set up in my application to write out to a log file.
Now If I install the application from my setup project and try to run
it, I am getting an exception that says something along the lines of:

"UnauthorizedAccessException: ... Access to the path
....\myAppLogFile.log is denied"

I checked the permissions of the directory inside of program files and
sure enough, only administrators were allowed to Modify the files in
the directory. I was logged in as a non-administrator when I was
testing. When logged in as adminstrator, no problems arise.

Does anyone know of a good approach to this? Perhaps I should modify
the directory permissions on install?

Thanks,

Jonathan
 
Back
Top