How do you prevent ASP.NET from creating too many temporary files? My website creates gigabytes of temporary files, and that overflows the main partition on the server. How do I prevent this from happening?
+4
A:
Setup a task in the task scheduler to clean up temporary files. I have no idea why this is not done by the OS (or by the creator of those files).
leppie
2009-02-25 16:42:03
+2
A:
Where are these temp files beeing generated?
If it's in the "Temporary ASP.NET Files" folder, it's a result of your application beeing recompiled. Checkout MSDN for more information on dynamic compilation. One possible solution could be to relocate the temp directory.
You could try pre-compiling your site to avoid the generation of temp-files.
PHeiberg
2009-02-26 22:08:39