ERROR: “The project doesn't know how to run the profile IIS Express” (VS 2019, 16.10.1)

kaleenbhaiya 11 Reputation points
2021-06-10T10:37:26.447+00:00

I'm super new to coding altogether, and I'm googling as much as I can, but nothing is addressing my latest problem:

https://learn.microsoft.com/en-us/visualstudio/ide/quickstart-aspnet-core?view=vs-2019

I followed this, just trying to get my feet wet, but when I get to the part where I run the webpage in IIS Express, I get an error that says, "The project doesn't know how to run the profile IIS Express."

I did see this, it seems to come closest to addressing the skin problem, but I'm not sure how to apply the fix, or even quite what it all means:

https://elanderson.net/2017/06/visual-studio-2017-error-the-project-doesnt-know-how-to-run-the-profile-iis-express/?fbclid=IwAR1ISIOAA6rap5Kll6tYc5H43ZzKFvNbRfRyaTtOPt5BZDBUO6xrZ55Ph70

If this is what I need, how do I do it? If it's not... what do I need to get my debug running in a web browser?

Thanks a ton!

Visual Studio Debugging
Visual Studio Debugging
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Debugging: The act or process of detecting, locating, and correcting logical or syntactical errors in a program or malfunctions in hardware. In hardware contexts, the term troubleshoot is the term more frequently used, especially if the problem is major.
940 questions
{count} votes

2 answers

Sort by: Most helpful
  1. PengGe-MSFT 3,331 Reputation points
    2021-06-11T07:03:33.823+00:00

    Hi @kaleenbhaiya

    Welcome to Microsoft Q&A!

    Can you provide more detailed information? For example, a screenshot of your code.

    I followed the tutorial in this document to create an ASP.NET Core web app using Visual Studio, and everything worked fine.

    Here are some suggestions that may be useful to the problem.
    1). Make sure your Visual Studio has installed the following workload and components.104623-1.png104624-2.png104529-3.png

    2). Configure IIS Express.104633-4.png104654-5.png
    Then try to run the program again.

    If your issue still persists, feel free to let me know.

    Sincerely,
    Peng
    *
    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

    1 person found this answer helpful.
    0 comments No comments

  2. Clint Woods 1 Reputation point
    2023-02-12T00:19:38.65+00:00

    hi @PengGe-MSFT
    I was successfully debugging this project last week. No idea what changed. I am not able to get my project going with these instructions, first of all, I always had the "IIS Express" profile selected and have never used any others. The name of the project is shown in this screenshot with 'properties' appended, so i click that assuming that what the instructions above would indicate
    User's image

    That displays a similar but not quite the same page as shows above:
    User's image

    I do not see how to configure per the instructions provided. Any advice?

    clint

    0 comments No comments