Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I restart IIS Express within Visual Studio?

We are currently heavily tweaking applicationhost.config files within our Visual Studio solutions in order to get additional host header bindings up and running.

Is there a way to quickly restart IIS Express from Visual Studio without having to start a debug session? The changes in applicationhost.config are only picked up after a restart.

like image 688
Carl in 't Veld Avatar asked Feb 02 '17 13:02

Carl in 't Veld


People also ask

How do I turn off IIS Express?

Closing IIS Express By default Visual Studio places the IISExpress icon in your system tray at the lower right hand side of your screen, by the clock. You can right click it and choose exit. If you don't see the icon, try clicking the small arrow to view the full list of icons in the system tray.

How do I manually start IIS?

Click Start, Settings, Control Panel, Administrative Tools. Open Services. Right-click on the IIS Admin Service and select Stop, Start, or Restart.


2 Answers

You can close it on the system tray or killing its process at the Task Manager and to run it again you just need to use iisexpress exe, it's usually at C:\Program Files (x86)\IIS Express\iisexpress.exe or C:\Program Files\IIS Express\iisexpress.exe if you use 32bit Windows.

like image 190
Kiogara Avatar answered Sep 20 '22 12:09

Kiogara


Option 1:

  1. Right Click on IISExpress icon in system tray
  2. Click on name of running project
  3. Click "Stop Site"

enter image description here

Option 2:

  1. Open Task Manager (Press Ctrl+Shift+Esc)
  2. Right Click on 'iisexpress.exe'
  3. Click 'End process tree'

enter image description here

like image 26
S.ATTA.M Avatar answered Sep 22 '22 12:09

S.ATTA.M