What does 'IISReset' do?

后端 未结 10 1504
余生分开走
余生分开走 2020-12-02 06:21

On IIS 6, what does an IIS reset do?

Please compare to recycling an app pool and stopping and starting an ASP.NET web site.

If you replace a DLL or edit/rep

10条回答
  •  失恋的感觉
    2020-12-02 07:11

    IISReset restarts the entire webserver (including all associated sites). If you're just looking to reset a single ASP.NET website, you should just recycle that AppDomain.

    The most common way to reset an ASP.NET website is to edit the web.config file, but you can also create an admin page with the following:

    public partial class Recycle : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            HttpRuntime.UnloadAppDomain();
        }
    }
    

    Here's a blog post I wrote with more info: Avoid IISRESET in ASP.NET Applications

提交回复
热议问题