ASP.Net Temp Files Are Sometimes a Problem
Posted on Dec 05, 2012 by Nate in UncategorizedThis especially seems to be the case if you’re running Microsoft’s Web Developer on XP. You won’t know the temp files are a problem until your application suddenly stops working. The only fix I’ve been able to find is to manually shut down your browser and Web Developer. Then stop IIS, delete the ASP.Net temp files, and restart IIS. It’s a huge pain. So I finally just wrote a simple console app to stop IIS, delete the files, and restart IIS for me.
It’s still aggravating when it happens, but at least it no longer takes so much time. Here’s the code, if you’re interested: