Eliminating temporary ASP.Net Files

前端 未结 2 968
臣服心动
臣服心动 2021-01-12 00:12

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

相关标签:
2条回答
  • 2021-01-12 00:44

    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).

    0 讨论(0)
  • 2021-01-12 01:03

    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.

    0 讨论(0)
提交回复
热议问题