Wednesday, August 27, 2008

Delete Temporary ASP.NET Files

IIS caches the dlls my ASP.NET project references. On my development box sometimes it does not copy the new files over. To ensure that IIS is using your latest files

- From command line issue a "IISReset /stop" command to stop IIS
- Delete the C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\ folder
- Start IIS with "IISReset"

1 comment:

Braian said...

Or, you can write a .bat with this text!:

iisreset /stop

for /d %i in ("%systemroot%\Microsoft.Net\Framework\v1.1.4322\Temporary ASP.NET Files\*") do RD /q/s %i

for /d %i in ("%systemroot%\Microsoft.Net\Framework\v2.0.50727\Temporary ASP.NET Files\*") do RD /q/s %i

iisreset /start