B
brianpmccullough
Hello All,
I have a web service in which I would like to log all errors to a custom
error log (which is just a comma separated file) so that I don't have to
write to the Event Logs. The idea is to have my application installed to a
virtual directory and have everything live within that directory (including
error logs) so that anyone supporting the application only needs to look in
"one spot" for anything related to the application.
I wrote code to log any exceptions to a "ErrorLogs" subdirectory from the
application's root folder. The problem is that I keep getting an "Access
Denied" error when I hit an excpetion that needs to be logged.
I understand that this has to do with the security settings and the the
identity of the user running the Web Service code not having permissions to
write/create text files on the server.
This application can be used by many thousands of people within the company
and therefore impersonating each user is out of the question (as I don't want
to give Everyone "Write" control to the directory.
Is there a way to allow the Web Service code to write to the file system
programatically?
Thanks!
Brian
I have a web service in which I would like to log all errors to a custom
error log (which is just a comma separated file) so that I don't have to
write to the Event Logs. The idea is to have my application installed to a
virtual directory and have everything live within that directory (including
error logs) so that anyone supporting the application only needs to look in
"one spot" for anything related to the application.
I wrote code to log any exceptions to a "ErrorLogs" subdirectory from the
application's root folder. The problem is that I keep getting an "Access
Denied" error when I hit an excpetion that needs to be logged.
I understand that this has to do with the security settings and the the
identity of the user running the Web Service code not having permissions to
write/create text files on the server.
This application can be used by many thousands of people within the company
and therefore impersonating each user is out of the question (as I don't want
to give Everyone "Write" control to the directory.
Is there a way to allow the Web Service code to write to the file system
programatically?
Thanks!
Brian