I'm using log4net in my wpf solution. It is writing to error.xml correctly.
I need to change the permissions on the file so that every user on a PC has permission to write to error.xml.
How do I do this?
I'm using log4net in my wpf solution. It is writing to error.xml correctly.
I need to change the permissions on the file so that every user on a PC has permission to write to error.xml.
How do I do this?
A more complicated way would be to ensure your application is integrated with UAC so that it requests elevated privileges when starting and then it will run with Admin rights and it will be able to write to that file. But it's not a good practice i think.
Another way would be to write to the Application Data folder like it is explaned here: log4net writing to file. How to open up permissions
Alternative solution: The installer will request elevated rights, create the file and give write rights to "Everyone".