locked
UnloadAppDomain sometimes doesn't RRS feed

  • Question

  • User-1665794747 posted

    I need to control when the app pool recycles so I use UnloadAppDomain. I invoke it at 4am each morning, but occasionally I find the variables in appData have not been reset, implying that the recycle has not taken place. There's nothing in the logs that I can see about this. Any ideas?

    Tuesday, June 18, 2013 9:50 AM

Answers

  • User-166373564 posted

    Hi iLens

    We can use nloadAppDomain to terminates the current application.  The application restarts the next time a request is received for it,

    UnloadAppDomain also allows programmatic shutdown of unused applications,

    You can learn how to restart asp.net applications programmatically using UnloadAppDomain below,

    # Restart ASP.NET apps Programmatically

    hope it helps you,

    Regards

     

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Monday, June 24, 2013 11:10 PM