Resetting a website's AppDomain

27. August 2008
There are times when you want to forcefully reset a given website application's AppDomain. One specific scenario where this might happen is if you are storing application settings in a database as opposed to the web.config file. It turns out this is easy to accomplish by calling: System.Web.HttpRuntime.UnloadAppDomain();

.NET Development

blog comments powered by Disqus