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.
You can force an application recycle by running the following code.
HttpRuntime.UnloadAppDomain()
Hope this helps.