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?
MSDN Community Support
Please remember to click "Mark as Answer" the responses that resolved your issue.
If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.
Member
3 Points
56 Posts
UnloadAppDomain sometimes doesn't
Jun 18, 2013 09:50 AM|iLens|LINK
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?
All-Star
32817 Points
3815 Posts
Re: UnloadAppDomain sometimes doesn't
Jun 24, 2013 11:10 PM|Angie xu - MSFT|LINK
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
Please remember to click "Mark as Answer" the responses that resolved your issue.
If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.