Occassionally, when debugging an ASP.NET Core application, the following error will occur:
Unable to configure HTTPS endpoint. No server certificate was specified, and the default developer certificate could not be found
To resolve it, run the following in the Developer Prompt within Visual Studio:
dotnet dev-certs https --clean
dotnet dev-certs https -t
Hit OK at each prompt.
Restart Visual Studio and the error will be resolved.