How to prevent recompiling of asp.net when deleting a folder from app_data?

Playback: 1. Create an asp.net website. 2. Compile and view the default page. Keep your browser open. 3. Add the file to the app_data folder. 4. Refresh the default page. It should be fast ... not recompile. 5. Delete the file from the app_data folder. 6. Refresh the default page. It should be fast ... not recompile. 7. Add the folder to the app_data folder. 8. Refresh the default page. It should be fast ... not recompile. 9. Remove the folder from the app_data folder. 10. Refresh the default page. This will be slow because the site is being recompiled.

  • Is it for design? If so, what are the benefits of this behavior?

  • Is there a way to disable or prevent this?

+5
source share
2 answers

Yes, it’s scared, but check out this blog at Tess, she’s an ASP.NET escalation engineer ... you’ll want to read her section, “Why is the application domain being redesigned?”

Tess's Blog - http://blogs.msdn.com/tess/archive/2006/08/02/asp-net-case-study-lost-session-variables-and-appdomain-recycles.aspx

In this section, she refers to another Todd Carter blog, and apparently this design behavior fixes a bug that includes preventing the submission of deleted content.

Todd Blog - http://blogs.msdn.com/toddca/archive/2006/07/17/668412.aspx

+3
source
+1

All Articles