Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What does 'IISReset' do?

Tags:

asp.net

iis

iis-6

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/replace the web.config on an ASP.NET web site is that the same as stopping and starting that web site?

like image 459
Guy Avatar asked Aug 22 '08 21:08

Guy


People also ask

What do I do after IISReset?

Show activity on this post. 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.

What is the difference between IISReset and app pool recycle?

IISreset resets all application pools. Application pools are used to seperate processes. In earlier versions we always had to reset IIS, and so resetting ALL websites. When resetting an Application pool, only the websites configured to use that application pool are reset.

What does IISReset Noforce do?

Important Note: You can optionally include the /noforce parameter (iisreset /noforce) to help prevent data loss in case the IIS services cannot be stopped within the default one minute time-out period. If you are certain that it is safe to force IIS to restart, you can omit the /noforce parameter.

What happens when you recycle app pool?

What is application pool recycling in IIS? Recycling means that the worker process that handles requests for that application pool is terminated and a new one is started. This is generally done to avoid unstable states that can lead to application crashes, hangs, or memory leaks.


1 Answers

IISReset stops and restarts the entire web server (including non-ASP.NET apps)
Recycling an app pool will only affect applications running in that app pool.
Editing the web.config in a web application only affects that web application (recycles just that app).
Editing the machine.config on the machine will recycle all app pools running.

IIS will monitor the /bin directory of your application. Whenever a change is detected in those dlls, it will recycle the app and re-load those new dlls. It also monitors the web.config & machine.config in the same way and performs the same action for the applicable apps.

like image 133
hova Avatar answered Oct 03 '22 10:10

hova