hidden82
hidden82

Reputation: 69

How to bring back IIS Express for Debugging in Visual Studio 2019?

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?

Upvotes: 1

Views: 2834

Answers (2)

Deepak-MSFT
Deepak-MSFT

Reputation: 11335

I research the issue and found a couple of ways to bring the IIS Express option back.

You could try the approaches below one by one.

Approach-1

In Visual studio 2019, select the solution(.sln)-> Properties. Select the drop-down Single Start-up project. select your project from the dropdown. Click OK.

It should bring back the IIS Express option.

Approach-2

In Visual studio 2019, Go to Tools-> Customize-> Commands tab, then click on the toolbar radio button and choose the standard option from the drop-down and delete one of the existing toolbar inside the standard toolbar and then choose the option reset all.

enter image description here

Helpful references:

  1. Can't debug asp.net core api in visual studio 2019 (No button IIS Express)

  2. Visual studio 2019 debugging option IISExpress is gone from drop down

  3. IIS Express hidden issue

Upvotes: 1

Albert D. Kallal
Albert D. Kallal

Reputation: 48964

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.

Upvotes: 0

Related Questions