I have an existing solution with two projects..
I noticed I didn't have the Office/SharePoint workload installed so I launched the installer while thecurrent project was open.
The installer went through its thing installing the Office workload and then prompted me to restore files from the current project I had open.
I found this odd and selected to restore the files.
Visual Studio then rebooted to the start page.
I opened my original solution, and only one of the projects, the data layer, was visible. I right clicked on the solution and added 'existing' project to get the other project back.
I attempted to run Index.cshtml in debug mode and was greeted with:
A default document is not configured for the requested URL, and directory browsing is not enabled on the server.
The original solution ran IIS Express on this port http://localhost:51306/Home/Index
The new solution now runs it on this http://localhost:51375/
i.e. there is a change of port number from 51306 to 51375, which I think is the cause of the problem.
I can right click on the file in solution explorer and elect it to run in the browser, and it works on the old port 51306.
But I can't run it at all in debug mode from the debug menu.
Thanks for considering