My company has a C# asp.net application deployed with IIS 7.0. The location the app is deployed in is C:\inetpub\wwwroot\my.domain.www\
Under that we have a storage folder which is where we hold temporary files. This folder needs to be writable with each deployment. We reference this folder from within our Web.conf file, and thus the easy fix is probably to just change the storage folder to be located outside the website but I'm actually also just curious if there is a way that we can set permissions through Web.config file in a circumstance such as this.. so that whenever we deploy the directory permissions get set as such automatically without having to right click the folder and go through all of that with each deployment (since our website directory is blown out with each deployment).