APS.NET Temp file accumulation on server
Published Nov 28 2023 10:12 AM 3,817 Views
Microsoft

Issue:

Many of our customers have observed ASP.NET files piled up on many of the servers and size has gone up to 100 GB. and wanted to know it happens and the impact of removing the same.

 

Temp file accumulation at C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root path.

 

Cause:

By default, when you compile a Web application the compiled code is placed in the Temporary ASP.NET Files folder. This folder is a sub-directory of the location where you installed the .NET framework. There were more than 40 websites hosted on the single server.

 

Solution:

You can feel free to delete anything below Temporary ASP.NET Files (Worth noting that you mustn't delete the Temporary ASP.NET Files folder itself but you can clear its contents.). All of the contents will be generated again after you rebuild project.

So, removing the temp files may result in slow initial response. But once the files are recompiled the users won't be seeing any slowness.

 

Co-Authors
Version history
Last update:
‎Nov 27 2023 08:22 PM
Updated by: