I am a long time WebForms user who has never had a problem running an application from the 'IIS Express (Google Chrome)' drop-down on the VS menu bar. I'm using VS 2019 Community Edition.
I've been trying to learn MVC and can't even get Visual Studio to run the program that it builds and scaffolds itself. When I click the same IIS Express as before, I get a browser window with the address https://localhost:44330/, that gives ERR_CONNECTION_RESET. This seems to have something to do with selecting 'Configure for https' during setup, because when I don't select this, I can run the code just fine.
I can get around this when I create an ASP.NET Core application but not when I create an ASP.NET Web Application (.NET FrameworK)
With a Core application, Visual Studio creates a 2nd item on the drop down (under IIS Express) with the solution name. So although I've never gotten the IIS Express button to successfully run the program, I've been able to select the solution name and run the code (it creates a command window along the way). I would rather use .NET Core, but my web hosting company doesn't support it yet.
Why is this happening and how do I overcome it? Is there some setting buried deep down in a configuration file somewhere that I'm missing? /Why would Microsoft create scaffolded code that won't run? I'm guessing the answer is that it protects me somehow,