I'm trying to write a log file from an ASP.NET application under IIS7, but keep getting the following exception:
UnauthorizedAccessException "Access to the path 'C:\Users\Brady\Exports' is denied."
I have given write access to the iis_iusrs, iis_wpg, and aspnet users, based on various advices found by Google, but still get the error. Can someone please explain how I can create a log file in that directory, or, will creating a log directory under the web application itself automatically allow writing the file, and is this not perhaps a better solution?