Home > Back-end >  How to bring back IIS Express for Debugging in Visual Studio 2019?
How to bring back IIS Express for Debugging in Visual Studio 2019?

Time:09-12

I recently had to unload a project and reload it to fix a bug but now I dont have the option to start my code via IIS express anymore - instead it just says "Any CPU". enter image description here

It used to say IIS Express (Google Chrome) and I can launch my web app through that but now it is gone and even going through the Web settings for debugging didn't fix it: enter image description here

How can I bring back IIS Express so I can run my code properly again?

CodePudding user response:

Sounds like you need to exit, and then re-load VS. If not, then I would repair it.

I would also consider (yes, I know!!!) a reboot of your computer to flush out any running copy of IIS express.

The setting (choice) of what browser should be to the right in your menu like this: enter image description here

So, clicking on that down arrow (chevron) in your start button should drop a list of options to choose which browser.

CodePudding user response:

While I didn't find a solution, and rebooting it didn't work or pressing the chevron drop down button (it didn't show anything), I have learned you can right click the program in the scaffolding, go to debug, and then "start a new instance". This would launch your local host for the web program to run and it works fine.

You can then go to settings and set a hot key /shortcut for it to work which is what I did. While it didn't bring the IIS option back to run, it allows me to run my web program again that way.

  • Related