How to make IIS Express the default web server in Visual Studio?

Is there a way to set IIS Express as the default startup option in Visual Studio 2010 SP1? Currently, it uses Visual Studio Development Server by default, and you must run the command "Use IIS Express ..." manually.

+4
source share
1 answer
  • Right-click the Default Startup project file in your solution explorer.
  • Select "Properties."
  • Click the Web tab on the left side of the page
  • scroll down and select "Use local IIS web server"
  • Check "Use IIS Express"

Another useful bit in this section is that you can say that IIS does not launch browsers during debugging and just waits for the browser process to hit it. This is really good for cross-browser testing.

Just above the previous section, find the radio button called "Do not open the page. Wait for a request from an external application" in the "Action" section on the same page

EDIT:

To install all projects completed in this way, follow these steps:

  • Tools → Options
  • Projects and Solutions
  • Web projects
  • Check "Use IIS Express for new websites and file-based projects.
+12
source

Source: https://habr.com/ru/post/1381758/


All Articles