If you are impersonating any other user in ASP.NET, this user account must have write permission to this directory. I highly recommend not setting the userโs personal folder path as a location for storing web application logs or data. This requires that the ASP.NET workflow account has access to this private user folder if they do not match the account.
It is recommended to select a common area, for example, D: \ webapps \ logapp \ logfiles. Of course, with the appropriate permissions.
source
share