0

I am using Visual Studio 2017, .NET Core 2.1 and have built an Angular-CLI project by using VS templates. When the application is run two IIS Express servers are being launched:

I can double check that by examining the IIS icon in Windows taskbar. The first one is that which appears in the browser. Could someone explain why are there two IIS servers? My guess is that has to do with middleware AngularCliServer but not sure. I 'd appreciate a more robust and reliable answer.

enter image description here

1
  • 1
    Are you sure its really two applications and not just your one application which listens on http and https port? You have SSL enabled, so 2 ports are required Commented May 16, 2018 at 14:48

1 Answer 1

1

As mentioned in the comments by Tseng, there is only one application running but with 2 different ports. If you go to the IIS Express app in your taskbar, right click and choose "Show All Applications"

enter image description here

You can see that both sites are running from the same PID

enter image description here

If you uncheck Enable SSL for your project the next time you run there will only be one site running via http.

Sign up to request clarification or add additional context in comments.

2 Comments

However, if unchecking Enable SSL and trying localhost:52629 the app redirects to localhost:44375 and is not loaded...
If you are redirecting the user to HTTPS then you need to keep the EnableSSL box ticked :-) Unchecking the box in my answer was to prove that the site will only run HTTP in that instance.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.