Recently, we discovered that our web server's C drive was getting full and the primary reason was the ASP.NET Temporary Files folder location (C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files).
We decided to change this location and move it to another drive on the same disk which was having enough space.
We tried changing one of the site's web config by adding this:
<compilation tempDirectory="D:\TemporaryASPNETFiles">
That did the work and moved the temp files to D:\TemporaryASPNETFiles for that single website.
Now we want to do the same for all websites. But going to each website's webconfig and changing the tempDirectory will not feasible as we have tons of websites on the IIS web server.
We tried changing the following config too: C:\Windows\Microsoft.NET\Framework\v4.0.30319\Config by adding tempDirectory location to compilation tag:
<compilation tempDirectory="D:\TemporaryASPNETFiles" >
but it didn't make any change. Is there any other location which can do the change for all the websites.