Question

How to restart the w3wp.exe process using asp.net C#? For example, I want to click a button in a webform page to restart the w3wp.exe process in the server.

Was it helpful?

Solution

You can force an application recycle by running the following code.

HttpRuntime.UnloadAppDomain()

Hope this helps.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top