I am trying to run my .NET project in Visual Studio, but whenever I start the application—whether using Debug or Run—I get an error popup saying:
This project doesn't know how to run the profile with name ‘IIS Express’ and command ‘IISExpress’.
The IIS Express option still appears in the launch profile dropdown, but the project will not start at all. I have also attached a screenshot of the error message.
To resolve the issue, I have already tried repairing Visual Studio using the Visual Studio Installer, but the problem still persists.
What could be causing this issue, and how can I fix or recreate the IIS Express launch profile so that the project runs correctly?