According to http://serverfault.com/questions/350550 ... -folder-in
You can change the default location on a per website/application basis by editing the Configuration section of the Web.config file.<system.web>
<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
The change need not be on a per website/application basis. You can apply that change on a framework version basis by changing the framework's web.config file, for example: C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Config\web.config
. By doing this you impact all the websites that are targeting that version of the framework.