Eliminating temporary ASP.Net Files

感情迁移 提交于 2019-11-30 23:52:59

问题


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?


回答1:


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




回答2:


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.



来源:https://stackoverflow.com/questions/586790/eliminating-temporary-asp-net-files

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!