Restarting ASP .NET Web App Programmatically

One of my #WPDevs was wondering about how to restart a web app. I remember doing it programmatically a few years back so here is it.

HttpRunTime class (Provides a set of ASP.NET run-time services for the current application) exposes a simple static method

Public methodStatic member UnloadAppDomain Terminates the current application. The application restarts the next time a request is received for it.

This method, unloads the application. The in turn means that next request will cause application to reload there by achieving a desired restart

easy peasy

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s