I am trying to run the code that comes after running the below in VS Code:
dotnet new webapi -n API -controllers
now when I try to run the code:
dotnet run
I get this error:
Microsoft.AspNetCore.HttpsPolicy.HttpsRedirectionMiddleware[3]
Failed to determine the https port for redirect.
This localhost page can’t be found
No webpage was found for the web address: http://localhost:5133/
HTTP ERROR 404
what is wrong?