When writing a file from ASP.NET application, the target directory needs to have write permissions set for both the logged in account (maybe IUSER_[name]) and also the IIS_WPG account.
For example, writing a file to http://localhost/app/results, where the application root (http://localhost/app/) maps to C:\Inetpub\wwwroot\app\
The permissions on the root folder (C:\Inetpub\wwwroot\app\) can be readonly, but the permission on C:\Inetpub\wwwroot\app\results\ need to allow writing for IUSR and IIS_WPG accounts.
Leave a Reply