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

Aekchai Glomjitjarern 1 Reputation point
2021-07-18T19:09:06.88+00:00

Please help me!!!! I installed visual studio 2019 community program and trying to build an api project. How can i test the result. IIS Express button not showing or tell me how to run it to see the result thank you very much

Developer technologies ASP.NET ASP.NET Core
{count} votes

3 answers

Sort by: Most helpful
  1. Sam Wu-MSFT 7,561 Reputation points Microsoft External Staff
    2021-07-19T02:35:00.897+00:00

    Hi @Aekchai Glomjitjarern

    Is there no IIS Express button in your visual studio 2019?

    115741-capture.png

    If so, you can try the following two methods to solve your problem:

    • Go to Tools->Customize->Commands then click on toolbar tab and chhose standard option and delete one of the existing toolbar inside standard toolbar and then choose option reset all.
    • Selecting Properties from the solution menu, then in the Startup project menu, choose Single startup project radio button, and from the drop-down list select the Project that corresponds to your web application. After applying the change, in the toolbar you should see the "IIS Express" button re-appear.

    If the answer is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    2 people found this answer helpful.
    0 comments No comments

  2. Aekchai Glomjitjarern 1 Reputation point
    2021-07-19T10:50:33.437+00:00

    115866-image.png

    I think the installation of the program is incomplete or not? I can't run it to see the results.


  3. Duane Arnold 3,216 Reputation points
    2021-07-20T14:47:24.29+00:00

    The link should help you. Most likely, you don't have the project setup for debugging for ASP.NET Core.

    https://learn.microsoft.com/en-us/visualstudio/debugger/how-to-enable-debugging-for-aspnet-applications?view=vs-2017

    Whatever you are trying to debug, enter the URL to the controller action method in the browser's address bar.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.