Under IIS7.5 after switching pool identity to domain user I got this error:

"The current identity (domain\username) does not have write access to 'C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files'."

I could grant the user rights to this specific directory, but I wonder if there is a better solution. Ideally I would like to configure this "Temporary ASP.NET Files" directory to be stored in some other location.

link|improve this question
feedback

2 Answers

up vote 0 down vote accepted

You can change the default location on a per website/application basis by editing the Configuration section of the web.config file.

<compilation tempDirectory="d:\MyTempFiles" />

The application will re-compile and the files will be stored at this new location, after which you can safely remove the old folders. Note that the folder names will stay the same. e.g. if the old location was: C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\9878g103\e67805p7 then the new one will be d:\MyTempFiles\root\9878g103\e67805p7

link|improve this answer
feedback

Read the hosting guideliens at http://www.iis.net - there is a way to change that, even per pool or something like that.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.