Mastodon
//Ris Adams;

Clearing ASP.Net temporary files

Cover image for Clearing ASP.Net temporary files.

How to clear your ASP cache

By default, when you compile a Web application the compiled code is placed in the Temporary ASP.NET Files folder. This folder is a subdirectory of the location where you installed the .NET framework.

If you’re seeing strange caching behavior either in the Console or in WebAccess and an IISreset is not correcting your problem you can try to clear the Temporary ASP.NET Files.

(N.B you mustn’t delete the Temporary ASP.NET Files folder itself, but you can clear its contents.)

Using The CLI

First stop IIS

Then find your temp directory

# delete all files from
C:\Windows\Microsoft.NET\Framework\v4.0.30319\"Temporary ASP.NET Files"

C:\Windows\Microsoft.NET\Framework64\v4.0.30319\"Temporary ASP.NET Files"

depending on your configuration you may also wish to check:

%temp%\"Temporary ASP.NET Files"

C:\Users\[youruserid]\AppData\Local\Temp\"Temporary ASP.NET Files"

Don’t forget to re-start IIS when finished

§